1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/Zend/tests/match/002.phpt
T
2020-07-09 23:52:17 +02:00

20 lines
242 B
PHP

--TEST--
Match expression omit trailing comma
--FILE--
<?php
function print_bool($bool) {
echo match ($bool) {
true => "true\n",
false => "false\n"
};
}
print_bool(true);
print_bool(false);
?>
--EXPECT--
true
false