Doc #78072 [Fbk->NoF]: Wrong function call in the example.

From: Date: Sun, 09 Jun 2019 04:22:05 +0000
Subject: Doc #78072 [Fbk->NoF]: Wrong function call in the example.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16725@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78072&edit=1 ID: 78072 Updated by: php-bugs@lists.php.net Reported by: mgarbowski at poczta dot fm Summary: Wrong function call in the example. -Status: Feedback +Status: No Feedback Type: Documentation Problem Package: Documentation problem Operating System: irrelevant PHP Version: Irrelevant Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2019-05-27 10:32:10] cmb@php.net Is it about the Polish translation? This is not supposed to be available anymore. ------------------------------------------------------------------------ [2019-05-27 09:31:31] mgarbowski at poczta dot fm Description: ------------ --- From manual page: https://php.net/functions.arguments --- In the example #17 there is defined translated name of a function (suma()) and when calling it's used its English name (sum()). ==== Przykład #17 Dostęp do zmiennej ilości argumentów w PHP 5.5 i starszych <?php function suma() { $wynik = 0; foreach (func_get_args() as $liczba) { $wynik += $liczba; } return $wynik; } echo sum(1, 2, 3, 4); ?> Test script: --------------- <?php //correct version: function suma() { $wynik = 0; foreach (func_get_args() as $liczba) { $wynik += $liczba; } return $wynik; } echo suma(1, 2, 3, 4); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78072&edit=1

« previous php.doc.bugs (#16725) next »