I want to be able to replace backslashes with forward slashes in PHP4. Can this be done with an ereg_replace command or is there another way to do it? e.g. \stuff\hey\atextfile.txt
into
/stuff/hey/atextfile.txt
<?php
$str="\stuff\hey\atextfile.txt"; $str=str_replace("\","/",$str); echo $str;
?>