hi.
for this you can use [man]str_replace/man
From the PHP Manual (=my link above):
If you don't need fancy replacing rules (like regular expressions),
you should always use this function instead of ereg_replace() or preg_replace().
No need to use Regex, if we do not have to.
Some Regex functions can be rather SLOW.
This code below, I have run and tested
<?php
//the reason I use two \, is because
// character \needs to be eascaped by one backslash
// $text is REALLY: some\thing
$text = "some\\thing";
echo $text.'<br>';
$text = str_replace( '\\', '-', $text );
echo $text;
echo '<hr>';
// Using several replacements in arrays
$search = array( '\\', 'g', 's' );
$replace = array( '-' , '@', '@' );
$text = "some\\thing";
echo $text.'<br>';
$text = str_replace( $search, $replace, $text );
echo $text;
?>