mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-12 09:29:47 +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',
|
||
|
};
|