1
刪除文本我有很多的url(字符串):從字符串/ URL
$one = 'http://www.site.com/first/1/two/2/three/3/number/342';
$two = '/first/1/two/2/number/32';
$three = 'site.com/first/1/three/3/number/7';
$four = 'http://www.site.com/first/13/two/2/three/33/number/33/four/23';
如何刪除這個變量/數量/ X用PHP? 我的例子應該是:
$one = 'http://www.site.com/first/1/two/2/three/3';
$two = '/first/1/two/2';
$three = 'site.com/first/1/three/3';
$four = 'http://www.site.com/first/13/two/2/three/33/four/23';