I have string in PHP like below
C:\xampp\htdocs
I want output of it using str_replace like
/xampp/htdocs
I am trying it like below
$path = getcwd();
$new = str_replace(array("C:", "\"), ("","/") $path);
echo $new;
but its giving me error like below
Parse error: syntax error, unexpected '","' (T_CONSTANT_ENCAPSED_STRING), expect ing ')' in C:\xampp\htdocs\install-new.php on line 16
Let me know what is wrong with it.