Doc #70966 [Fbk->NoF]: It seems that example#1 is wrong
Edit report at https://bugs.php.net/bug.php?id=70966&edit=1
ID: 70966
Updated by: php-bugs@lists.php.net
Reported by: daniel dot duclos2 at gmail dot com
Summary: It seems that example#1 is wrong
-Status: Feedback
+Status: No Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows 10
PHP Version: 5.5.30
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:
------------------------------------------------------------------------
[2015-12-16 00:01:14] cmb@php.net
It seems to me that the example is correct, and the behavior of
substr_replace() with regard to the length parameter is properly
explained in the English documentation:
| If it is negative, it represents the number of characters from
| the end of string at which to stop replacing.
Maybe the French translation of this sentence is misleading?
------------------------------------------------------------------------
[2015-11-24 18:26:24] daniel dot duclos2 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.substr-replace
---
Il semble que l'exemple#1 soit faux en ce qui concerne les deux derniers exemples : le
paramètre "lenght" est utilisé comme s'il signifiait "end" avec la
même syntaxe que "start"
It seems that example#1 is wrong (at least in French version) for the 2 last examples : parameter
'lenght" is used as it meant "end" with the same syntax as "start"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70966&edit=1
Thread (7 messages)