【发布时间】:2015-03-11 18:48:30
【问题描述】:
$filePath="c:\tmp\2012\tmp\test.txt";
$array=explode("\",$filePath);
foreach($array as $test){
echo $test;
}
我想用“\”分隔 $filePath,但是转义字符.. 如何解决这个问题? 非常感谢
【问题讨论】:
-
更容易使用
/,因为它适用于 Windows 路径。
标签: php explode html-escape-characters