Striping slashes except if a user enters file directory path in string like C:\test\

20 Views Asked by At

Is there a way to use stripslashes() without removing slashes if the string contains a file directory path?

$string = "C:\test\";
echo stripslashes($string);
0

There are 0 best solutions below