| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2001-08-06 13:01 UTC] andrei@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
I'm trying to use preg_replace to replace $ with \$. Here is a sample script: <? $data = '$_hello_$world'; $data = preg_replace('/\$/i','\$',$data); print "data : $data\n"; ?> I expect the script to output \$_hello_\$world. However, version 4.0.5 is outputing $_hello_$world. This worked in version 4.0.4 It possible this bug is related to bug# 10668