public function executeFunction($string)
    {
        preg_match_all('/(.*)\((.*)\)/', $string, $matches);

        if (count($matches) > 0 && is_array($matches[0]) && count($matches[0]) > 0) {
            $function = $matches[1][0];

            return $function($this->removeQuotes($matches[2][0]));
        }

        return Constants::NOT_RESOLVED;
    }
public function executeFunction($string)
    {
        preg_match_all('/(.*)\((.*)\)/', $string, $matches);

        if (count($matches) > 0 && is_array($matches[0]) && count($matches[0]) > 0) {
            $function = $matches[1][0];

            return $function($this->removeQuotes($matches[2][0]));
        }

        return Constants::NOT_RESOLVED;
    }
public function executeFunction ( $ string ) { preg_match_all ( '/(.*)\((.*)\)/' , $ string , $ matches ) ; if ( count ( $ matches ) > 0 && is_array ( $ matches [ 0 ] ) && count ( $ matches [ 0 ] ) > 0 ) { $ function = $ matches [ 1 ] [ 0 ] ; return $ function ( $ this -> removeQuotes ( $ matches [ 2 ] [ 0 ] ) ) ; } return Constants :: NOT_RESOLVED ; }
Execute function.

@param $string

@return mixed
Execute function .