public function createStatementFromFunction($functionName, array $bindings)
    {
        $bindings = $bindings ? ':' . implode(', :', array_keys($bindings)) : '';

        $sql = sprintf('begin :result := %s(%s); end;', $functionName, $bindings);

        return $this->getPdo()->prepare($sql);
    }
public function createStatementFromFunction($functionName, array $bindings)
    {
        $bindings = $bindings ? ':' . implode(', :', array_keys($bindings)) : '';

        $sql = sprintf('begin :result := %s(%s); end;', $functionName, $bindings);

        return $this->getPdo()->prepare($sql);
    }
public function createStatementFromFunction ( $ functionName , array $ bindings ) { $ bindings = $ bindings ? ':' . implode ( ', :' , array_keys ( $ bindings ) ) : '' ; $ sql = sprintf ( 'begin :result := %s(%s); end;' , $ functionName , $ bindings ) ; return $ this -> getPdo ( ) -> prepare ( $ sql ) ; }
Create statement from function.

@param string $functionName
@param array  $bindings
@return PDOStatement
Create statement from function .