xref: /PHP-8.3/Zend/tests/match/002.phpt (revision 9fa1d133)
1--TEST--
2Match expression omit trailing comma
3--FILE--
4<?php
5
6function print_bool($bool) {
7    echo match ($bool) {
8        true => "true\n",
9        false => "false\n"
10    };
11}
12
13print_bool(true);
14print_bool(false);
15
16?>
17--EXPECT--
18true
19false
20