\ Char Problems

From: Date: Wed, 13 Dec 2000 06:55:32 +0000
Subject: \ Char Problems
Groups: php.general 
Request: Send a blank email to php-general+get-30047@lists.php.net to get a copy of this message
Hi, I have a code that converts certain chars (l33t chars) into normal text. What I am trying to do is convert all instances of "/\/\" in a string to "M". I have some code that stores all the leet/normal text conversions like so: "M" => "/\/\", "N" => "|\|" The problems is that if I have it like this then I get a parse error because of the \ chars. If I change the code like this: "M" => "/\\/\\", "N" => "|\\|" Then the conversion is not made because it will not find "/\\/\\" in the string, only "/\/\". Any ideas? Thanks, Matt Stone _______________________________ This email may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you have received this email in error, please contact the sender and delete all copies. Opinions, conclusions or other information expressed or contained in this email are not given or endorsed by the sender unless otherwise affirmed independently by the sender. _________________________________

« previous php.general (#30047) next »