note 30048 deleted from function.str-replace by didou

From: Date: Thu, 24 Jul 2003 12:28:38 +0000
Subject: note 30048 deleted from function.str-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-52561@lists.php.net to get a copy of this message
Note Submitter: nimrod leahvi at hot mail dot com ---- I've been asked so many times - it has to be online: When repalcing a string for a later use with JavaScript document.write use these: str_repalce("\"", "\\\"", $str) str_repalce("\'", "\\\'", $str) str_repalce("\\", "\\\\", $str) this will add \ before the otherwise problematic ", ', \

« previous php.notes (#52561) next »