mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-15 10:57:11 +01:00
43 lines
654 B
Plaintext
43 lines
654 B
Plaintext
|
Variable syntaxes
|
||
|
-----
|
||
|
<?php
|
||
|
|
||
|
$a;
|
||
|
${'a'};
|
||
|
${foo()};
|
||
|
$$b;
|
||
|
$$$c;
|
||
|
-----
|
||
|
array(
|
||
|
0: Expr_Variable(
|
||
|
name: a
|
||
|
)
|
||
|
1: Expr_Variable(
|
||
|
name: Scalar_String(
|
||
|
value: a
|
||
|
)
|
||
|
)
|
||
|
2: Expr_Variable(
|
||
|
name: Expr_FuncCall(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: foo
|
||
|
)
|
||
|
)
|
||
|
args: array(
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
3: Expr_Variable(
|
||
|
name: Expr_Variable(
|
||
|
name: b
|
||
|
)
|
||
|
)
|
||
|
4: Expr_Variable(
|
||
|
name: Expr_Variable(
|
||
|
name: Expr_Variable(
|
||
|
name: c
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|