1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00
Files
archived-php-src/Zend/tests/match/011.phpt
T
2020-07-09 23:52:17 +02:00

20 lines
292 B
PHP

--TEST--
Implicit break in match expression
--FILE--
<?php
function dump_and_return($string) {
var_dump($string);
return $string;
}
var_dump(match ('foo') {
'foo' => dump_and_return('foo'),
'bar' => dump_and_return('bar'),
});
?>
--EXPECT--
string(3) "foo"
string(3) "foo"