2011-12-04 16:52:43 +01:00
|
|
|
Function calls
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// function name variations
|
|
|
|
a();
|
|
|
|
$a();
|
|
|
|
${'a'}();
|
|
|
|
$$a();
|
|
|
|
$$$a();
|
|
|
|
$a['b']();
|
|
|
|
$a{'b'}();
|
2011-12-07 18:17:05 +01:00
|
|
|
$a->b['c']();
|
2011-12-04 16:52:43 +01:00
|
|
|
|
|
|
|
// array dereferencing
|
|
|
|
a()['b'];
|
|
|
|
-----
|
|
|
|
array(
|
|
|
|
0: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: a
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // function name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // function name variations
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
1: Expr_FuncCall(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
2: Expr_FuncCall(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: Scalar_String(
|
|
|
|
value: a
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
3: Expr_FuncCall(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
4: Expr_FuncCall(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
5: Expr_FuncCall(
|
|
|
|
name: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
6: Expr_FuncCall(
|
|
|
|
name: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
2011-12-07 18:17:05 +01:00
|
|
|
7: Expr_FuncCall(
|
|
|
|
name: Expr_ArrayDimFetch(
|
|
|
|
var: Expr_PropertyFetch(
|
|
|
|
var: Expr_Variable(
|
|
|
|
name: a
|
|
|
|
)
|
|
|
|
name: b
|
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: c
|
|
|
|
)
|
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
8: Expr_ArrayDimFetch(
|
2011-12-04 16:52:43 +01:00
|
|
|
var: Expr_FuncCall(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: a
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
args: array(
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
dim: Scalar_String(
|
|
|
|
value: b
|
|
|
|
)
|
2016-03-09 18:57:16 +01:00
|
|
|
comments: array(
|
|
|
|
0: // array dereferencing
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
)
|
|
|
|
)
|