去除斜杠
/Public/Uploads/Photo/ 这个该怎么替换成 Public/Uploads/Photo/
[解决办法]
ltrim应该简单些吧?
[解决办法]
$str = '/Public/Uploads/Photo/';
echo substr($str,1);
$str = '/Public/Uploads/Photo/';
echo ltrim($str,'/');