抢没没有正则表达式?

时间:2012-07-29 23:01:18

标签: php substr strip

我有一个网址,我想抓取变量“key2”的值

http://google.com/dyn_v8/flash/nice-323.swf?file=http://www.yahoo.com/sda/vdsd.ashx?key2=0038003500000077002a001300790002001d0026000e00250008

我只想通过php抓住:0038003500000077002a001300790002001d0026000e00250008。

请帮助,提前谢谢。

1 个答案:

答案 0 :(得分:0)

获取最后=个符号的位置,然后取出所有内容:

$result = substr($str, strrpos($str, '=') + 1);