2011-12-04 16:52:43 +01:00
|
|
|
Conditional function definition
|
|
|
|
-----
|
|
|
|
<?php
|
|
|
|
|
|
|
|
if (true) {
|
|
|
|
function A() {}
|
|
|
|
}
|
|
|
|
-----
|
|
|
|
array(
|
|
|
|
0: Stmt_If(
|
2014-03-22 14:49:56 +01:00
|
|
|
cond: Expr_ConstFetch(
|
|
|
|
name: Name(
|
|
|
|
parts: array(
|
|
|
|
0: true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
stmts: array(
|
|
|
|
0: Stmt_Function(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2011-12-04 16:52:43 +01:00
|
|
|
params: array(
|
|
|
|
)
|
2015-03-12 13:17:31 +01:00
|
|
|
returnType: null
|
2011-12-04 16:52:43 +01:00
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
elseifs: array(
|
|
|
|
)
|
|
|
|
else: null
|
|
|
|
)
|
2017-01-19 22:25:22 +01:00
|
|
|
)
|