字符串下面我需要拆分。我用PHP试图爆炸功能拆分php中的字符串
$链接= “7_5_7_http://test.com/folder/images/7_newim/5_car/7_february2013/p/a00/p01/video-1.mov_00:00: 09" ;
$ ex_link = explode('_',$ link);
但它劈裂每一个“_”符号后面的字符串。但我需要的结果是这样
$ex_link[0] ==> 7;
$ex_link[1] ==> 5;
$ex_link[2] ==> 7;
$ex_link[3] ==> http://test.com/folder/images/7_newim/5_car/7_february2013/p/a00/p01/video-1.mov;
$ex_link[2] ==> 00:00:09;
任何想法来实现这一点。
在此先感谢
看一看[的preg_match](HTTP:// PHP达网络/手动/ EN/FUNC tion.preg-match.php)和http://www.regular-expressions.info/开始。 – elclanrs