[doc-en] master: Fixed example so that it runs

From: Date: Thu, 27 Nov 2025 16:42:20 +0000
Subject: [doc-en] master: Fixed example so that it runs
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-22879@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2025-11-27T16:42:15Z Commit: https://github.com/php/doc-en/commit/2f1812217524ac60414745bad05cbbee00262b3b Raw diff: https://github.com/php/doc-en/commit/2f1812217524ac60414745bad05cbbee00262b3b.diff Fixed example so that it runs Changed paths: M language/operators/functional.xml Diff: diff --git a/language/operators/functional.xml b/language/operators/functional.xml index c58f3dfe7a05..e44fa25d1faf 100644 --- a/language/operators/functional.xml +++ b/language/operators/functional.xml @@ -48,7 +48,7 @@ $result = "PHP Rocks" |> (fn($x) => array_map(strtoupper(...), $x)) |> (fn($x) => array_filter($x, fn($v) => $v != 'O')) ; -echo $result, PHP_EOL; +print_r($result); $temp = "PHP Rocks"; $temp = htmlentities($temp); @@ -56,7 +56,7 @@ $temp = str_split($temp); $temp = array_map(strtoupper(...), $temp); $temp = array_filter($temp, fn($v) => $v != 'O'); $result = $temp; -echo $result, PHP_EOL; +print_r($result); ?> ]]> </programlisting>

« previous php.doc.cvs (#22879) next »