I am trying to replace a backslash inside a string. Somehow nothing workes, not the str_replce, not preg_replace, not erreg_replace.
$new_str = str_replace('\','-',$old_string); or $new_str = str_replace("\\",'-',$old_string);
But this begs the question of why do you think you need to do this??
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

