mirror of
https://github.com/danog/parser.git
synced 2024-12-14 01:47:21 +01:00
11 lines
131 B
PHP
11 lines
131 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
$a = 4;
|
||
|
|
||
|
$b = match ($a) {
|
||
|
1,2,3,4 => null,
|
||
|
// seems weird, but PHP considers this valid.
|
||
|
default, => null,
|
||
|
};
|