<?php $str = parse_url(‘http://localhost/?id=2&cd=2‘, PHP_URL_QUERY); ECHO $str; parse_str($str, $cc); print_r($cc);
PHP提取url
原文:http://www.cnblogs.com/perl6/p/7119276.html