如何解析这个网址http://site.com/forum.php?id=1&page.php?id=1
是这样的
(
[0] => http://site.com/forum.php
[1] => 1
[2] => &page.php
[3] => 1
[4] => &next.php
[5] => 2
)
正则表达式我被这样卡住"/\?(.*?)=/i"
了,输出是这样的:
(
[0] => http://site.com/forum.php
[1] => 1&page.php
[2] => 1&next.php
[3] => 2
)