mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-04 18:28:25 +01:00
38 lines
665 B
Plaintext
38 lines
665 B
Plaintext
|
Switch
|
||
|
-----
|
||
|
<?php
|
||
|
|
||
|
switch ($a) {
|
||
|
case 0:
|
||
|
case 1;
|
||
|
default:
|
||
|
}
|
||
|
-----
|
||
|
array(
|
||
|
0: Stmt_Switch(
|
||
|
cond: Expr_Variable(
|
||
|
name: a
|
||
|
)
|
||
|
cases: array(
|
||
|
0: Stmt_Case(
|
||
|
stmts: array(
|
||
|
)
|
||
|
cond: Scalar_LNumber(
|
||
|
value: 0
|
||
|
)
|
||
|
)
|
||
|
1: Stmt_Case(
|
||
|
stmts: array(
|
||
|
)
|
||
|
cond: Scalar_LNumber(
|
||
|
value: 1
|
||
|
)
|
||
|
)
|
||
|
2: Stmt_Case(
|
||
|
stmts: array(
|
||
|
)
|
||
|
cond: null
|
||
|
)
|
||
|
)
|
||
|
)
|
||
|
)
|