note 25546 added to language.types.string

From: Date: Fri, 27 Sep 2002 10:00:43 +0000
Subject: note 25546 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-37322@lists.php.net to get a copy of this message
I had a problem using preg_replace with text blocks that contained dollar signs. For example "$10,000" turn into ",000". So, I first I had to use ereg_replace to replace the dollar signs to HTML escape characters: $contents = ereg_replace("\$", "$", $contents); -- http://www.php.net/manual/en/language.types.string.php http://master.php.net/manage/user-notes.php?action=edit+25546 http://master.php.net/manage/user-notes.php?action=delete+25546 http://master.php.net/manage/user-notes.php?action=reject+25546

« previous php.notes (#37322) next »