parse_str() ;
parse_str("name=Bill&age=60"); echo $name."<br>";//Bill echo $age;//60
parse_str("name=Bill&age=60",$myArray); print_r($myArray);//array(‘name‘=‘Bill‘,"age"=‘60‘)
时间: 2024-10-18 19:38:30
parse_str() ;
parse_str("name=Bill&age=60"); echo $name."<br>";//Bill echo $age;//60
parse_str("name=Bill&age=60",$myArray); print_r($myArray);//array(‘name‘=‘Bill‘,"age"=‘60‘)