diff --git a/appendices/migration85/new-features.xml b/appendices/migration85/new-features.xml index 15c1f4f9d0..71310d2ad7 100644 --- a/appendices/migration85/new-features.xml +++ b/appendices/migration85/new-features.xml @@ -1,5 +1,5 @@ - + Nouvelle fonctionnalités @@ -70,7 +70,7 @@ print $result . PHP_EOL; // Affiche "11" #[\NoDiscard] function concat(string $a, string $b): string { - return a + b; + return $a . $b; } // Attention : La valeur de retour de la fonction concat() doit être utilisée ou diff --git a/language/operators/functional.xml b/language/operators/functional.xml index 8c6b5f643a..1add6a5656 100644 --- a/language/operators/functional.xml +++ b/language/operators/functional.xml @@ -1,5 +1,5 @@ - + Opérateurs fonctionnels @@ -51,7 +51,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); @@ -59,7 +59,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); ?> ]]> diff --git a/reference/xdiff/functions/xdiff-string-rabdiff.xml b/reference/xdiff/functions/xdiff-string-rabdiff.xml index 96a2d01510..3d496bec35 100644 --- a/reference/xdiff/functions/xdiff-string-rabdiff.xml +++ b/reference/xdiff/functions/xdiff-string-rabdiff.xml @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ &reftitle.description; - string|falsexdiff_string_rabdiff + stringfalsexdiff_string_rabdiff stringold_data stringnew_data