php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50769 Omitted backslash in backreference
Submitted: 2010-01-15 15:03 UTC Modified: 2010-01-15 15:43 UTC
From: marianofelice at yahoo dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marianofelice at yahoo dot com
New email:
PHP Version: OS:

 

 [2010-01-15 15:03 UTC] marianofelice at yahoo dot com
Description:
------------
In example 1, a backslash has been omitted at the beginning of the replacement string. It reads "$replacement = '${1}1,$3';" when it should be "$replacement = '\${1}1,$3';".

Reproduce code:
---------------
---
From manual page: function.preg-replace#Examples
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-15 15:43 UTC] degeberg@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 12:00:01 2026 UTC