Probably this is a stupid question but I can't get rid of it!
I have a series of Windows path such C:\xampp\htdocs\wit\site.e
hp and I need to process them. To get their content I need to replace backslashes with forward slashes and I tried this
$fn = "C:\xampp\htdocs\wit\site.es\application\views\somefile.php";
$fn = str_replace('\\', '/', $fn);
But I get this: C: mpp/htdocs/wit/site.es/app
What I'm missing here?