Skip to content

Commit 2f18122

Browse files
committed
Fixed example so that it runs
1 parent 1987020 commit 2f18122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

language/operators/functional.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ $result = "PHP Rocks"
4848
|> (fn($x) => array_map(strtoupper(...), $x))
4949
|> (fn($x) => array_filter($x, fn($v) => $v != 'O'))
5050
;
51-
echo $result, PHP_EOL;
51+
print_r($result);
5252
5353
$temp = "PHP Rocks";
5454
$temp = htmlentities($temp);
5555
$temp = str_split($temp);
5656
$temp = array_map(strtoupper(...), $temp);
5757
$temp = array_filter($temp, fn($v) => $v != 'O');
5858
$result = $temp;
59-
echo $result, PHP_EOL;
59+
print_r($result);
6060
?>
6161
]]>
6262
</programlisting>

0 commit comments

Comments
 (0)