Doc #70966 [Opn->Fbk]: It seems that example#1 is wrong
Edit report at https://bugs.php.net/bug.php?id=70966&edit=1
ID: 70966
Updated by: cmb@php.net
Reported by: daniel dot duclos2 at gmail dot com
Summary: It seems that example#1 is wrong
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows 10
PHP Version: 5.5.30
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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)