Doc #78123 [Opn->Nab]: Documentation problem str_replace
| From: | sjon@php.net | Date: | Fri, 07 Jun 2019 13:48:50 +0000 |
| Subject: | Doc #78123 [Opn->Nab]: Documentation problem str_replace | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16716@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78123&edit=1
ID: 78123
Updated by: sjon@php.net
Reported by: dacarter at uh dot edu
Summary: Documentation problem str_replace
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I think you misread that sentence. It reads "If you don't need fancy replacing rules (like
regular expressions), you should always use this function instead of preg_replace(). "
so that's correct
Previous Comments:
------------------------------------------------------------------------
[2019-06-07 13:45:30] dacarter at uh dot edu
Description:
------------
---
From manual page: https://php.net/function.str-replace
---
If you don't need fancy replacing rules (like regular expressions), ...
SHOULD SAY:
If you need fancy replacing rules (like regular expressions), ...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78123&edit=1