public static function parseExpression($expression) {
    $tree = self::parseSource('<?php ' . $expression . ';');
    /** @var ExpressionStatementNode $statement_node */
    $statement_node = $tree->firstChild()->next();
    return $statement_node->getExpression()->remove();
  }
public static function parseExpression($expression) {
    $tree = self::parseSource('<?php ' . $expression . ';');
    /** @var ExpressionStatementNode $statement_node */
    $statement_node = $tree->firstChild()->next();
    return $statement_node->getExpression()->remove();
  }
public static function parseExpression ( $ expression ) { $ tree = self :: parseSource ( '<?php ' . $ expression . ';' ) ; /** @var ExpressionStatementNode $statement_node */ $ statement_node = $ tree -> firstChild ( ) -> next ( ) ; return $ statement_node -> getExpression ( ) -> remove ( ) ; }
Parse a PHP expression.

@param string $expression
PHP expression snippet.

@return ExpressionNode
The expression.
Parse a PHP expression .