grab without regex?


grab without regex?

我有一个url,我想获取变量"key2"的值

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

我只想通过php获取:00380035000000077002a001300790002001d0026000e00250008。

请帮忙,提前谢谢。

获取最后一个=符号的位置,并获取它之后的所有内容:

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