PHP提取url

<?php
$str = parse_url('http://localhost/?id=2&cd=2', PHP_URL_QUERY);
ECHO $str;
parse_str($str, $cc);
print_r($cc);

 

posted on 2017-07-05 01:45  Perl6  阅读(285)  评论(0编辑  收藏  举报

导航