回复讨论(解决方案)
把查询字符串输出成一个数组不就行了
用名字访问
$s = 'www.xxx.com?act=game&st=play&b1=1&round=1';parse_str(@array_pop(explode('?', $s)), $a);print_r($a);$s = 'www.xxx.com?act=game&st=play&b2=2&round=1';parse_str(@array_pop(explode('?', $s)), $a);print_r($a);Array (
[act] => game
[st] => play
[b1] => 1
[round] => 1
)
Array
(
[act] => game
[st] => play
[b2] => 2
[round] => 1
)
parse_str
http://www.w3school.com.cn/php/func_string_parse_str.asp