note 21865 added to function.str-replace

From: Date: Wed, 29 May 2002 20:45:01 +0000
Subject: note 21865 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-31166@lists.php.net to get a copy of this message
I had a case where I was sending a customer name to another page... it worked great until I hit the name Tim's Towing... it would come across as Tim/'s Towing. It took me awhile... but this removes the problem: $customer_name=str_replace("\\'","'",$customer_name); Jerry -- http://www.php.net/manual/en/function.str-replace.php http://master.php.net/manage/user-notes.php?action=edit+21865 http://master.php.net/manage/user-notes.php?action=delete+21865 http://master.php.net/manage/user-notes.php?action=reject+21865

« previous php.notes (#31166) next »