HI更换号码的所有我这里有这个代码str_replace。从字符串
$pathinfo = pathinfo($fullpath);
$tags = $shortpath;
$tags = str_replace("/", " ", $tags);
$tags = str_replace("__", " ", $tags);
$tags = str_replace(".png", "", $tags);
$tags = str_replace(".jpg", "", $tags);
$tags = str_replace(".jpeg", "", $tags);
$tags = str_replace(".gif", "", $tags);
,一切工作正常与上面,但我也需要在文件开始更换一些数字我加入
例子文件将是
247991 - my_small_house.jpg
其号码前加“ - ”我需要去 可以这样做?
感谢
谢谢!工作现场:) – VK27