php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78123 Documentation problem str_replace
Submitted: 2019-06-07 13:45 UTC Modified: 2019-06-07 13:48 UTC
From: dacarter at uh dot edu Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dacarter at uh dot edu
New email:
PHP Version: OS:

 

 [2019-06-07 13:45 UTC] 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), ...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-06-07 13:48 UTC] sjon@php.net
-Status: Open +Status: Not a bug
 [2019-06-07 13:48 UTC] sjon@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC