mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 17:17:31 +01:00
71 lines
1.2 KiB
Plaintext
71 lines
1.2 KiB
Plaintext
|
Arguments
|
||
|
-----
|
||
|
<?php
|
||
|
|
||
|
f();
|
||
|
f($a);
|
||
|
f($a, $b);
|
||
|
f(&$a);
|
||
|
-----
|
||
|
array(
|
||
|
0: Expr_FuncCall(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: f
|
||
|
)
|
||
|
)
|
||
|
args: array(
|
||
|
)
|
||
|
)
|
||
|
1: Expr_FuncCall(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: f
|
||
|
)
|
||
|
)
|
||
|
args: array(
|
||
|
0: Arg(
|
||
|
value: Expr_Variable(
|
||
|
name: a
|
||
|
)
|
||
|
byRef: false
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
2: Expr_FuncCall(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: f
|
||
|
)
|
||
|
)
|
||
|
args: array(
|
||
|
0: Arg(
|
||
|
value: Expr_Variable(
|
||
|
name: a
|
||
|
)
|
||
|
byRef: false
|
||
|
)
|
||
|
1: Arg(
|
||
|
value: Expr_Variable(
|
||
|
name: b
|
||
|
)
|
||
|
byRef: false
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
3: Expr_FuncCall(
|
||
|
name: Name(
|
||
|
parts: array(
|
||
|
0: f
|
||
|
)
|
||
|
)
|
||
|
args: array(
|
||
|
0: Arg(
|
||
|
value: Expr_Variable(
|
||
|
name: a
|
||
|
)
|
||
|
byRef: true
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|