Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 url,我想获取变量“key2”的值
http://google.com/dyn_v8/flash/nice-323.swf?file=http://www.yahoo.com/sda/vdsd.ashx?key2=0038003500000077002a001300790002001d0026000e00250008
我只是想通过 php 抓取:0038003500000077002a001300790002001d0026000e00250008。
请帮忙,提前谢谢你。
获取最后一个=标志的位置,并在它之后获取所有内容:
=
$result = substr($str, strrpos($str, '=') + 1);