oh.. you are right, I ment slash.
Workes now. Thanx for the hint :-))
--
Merlin wrote:
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
Hi there,
I am trying to replace a backslash inside a string. Somehow nothing workes,
not the str_replce, not preg_replace, not erreg_replace.
Can anybody please help?
Thanx you in advance,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
3 matches
Mail list logo