mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 09:37:21 +01:00
18 lines
215 B
Plaintext
18 lines
215 B
Plaintext
|
Match
|
||
|
-----
|
||
|
<?php
|
||
|
|
||
|
echo match (1) {
|
||
|
0, 1 => 'Foo',
|
||
|
// Comment
|
||
|
2 => 'Bar',
|
||
|
default => 'Foo',
|
||
|
};
|
||
|
-----
|
||
|
!!php7
|
||
|
echo match (1) {
|
||
|
0, 1 => 'Foo',
|
||
|
// Comment
|
||
|
2 => 'Bar',
|
||
|
default => 'Foo',
|
||
|
};
|