Hello !
I'd like to know that how can i split a string which contains a backslash.
The string is a file path, and that is include some backslash. e.g.: D:\develop\pictures\exapmle.jpg.
A need only the filename!
I've tried this: (the $filestr is the filepath)
$str = preg_split("/\/",$filestr) ;
but it didn't work...
I 've tried in JavaScript , and I have had the same problem.
Please help me as soon as you can! This is very urgent.
Thanks for your reaction !
kery