Fel*_*lix 2 php regex
如果我有一个网址,看起来像这样:
http://wwww.example/test1/test2/test3/
如何test3从上面的URL 检索字符串?
test3
Awl*_*ton 6
$str = explode("/","http://wwww.example/test1/test2/test3/"); echo $str[count($str)-2];
演示:https : //eval.in/83914
归档时间:
12 年 前
查看次数:
6221 次
最近记录: