note 20537 added to function.ereg-replace

From: Date: Sun, 07 Apr 2002 08:22:54 +0000
Subject: note 20537 added to function.ereg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-28799@lists.php.net to get a copy of this message
If you want replace something what contains '$' then the string must contain a backslash before the '$' sign. For example to reach this goal: replace '$blabla' with 'another blabla' This will not work: ereg_replace("\$$blabla","another blabla",$mainblabla); The working solution: ereg_replace("\\\$$blabla","another blabla",$mainblabla); Miklos Pathy -- http://www.php.net/manual/en/function.ereg-replace.php http://master.php.net/manage/user-notes.php?action=edit+20537 http://master.php.net/manage/user-notes.php?action=delete+20537 http://master.php.net/manage/user-notes.php?action=reject+20537

« previous php.notes (#28799) next »