<?php
$a = 100;
$str = "a=5&b=4";parse_str($str, $tmp);
extract($tmp, EXTR_SKIP);echo $a . "<br />";
echo $b . "<br />";
?>
$a = 100;
$str = "a=5&b=4";parse_str($str, $tmp);
extract($tmp, EXTR_SKIP);echo $a . "<br />";
echo $b . "<br />";
?>
parse_str($str, $tmp);
extract($tmp, EXTR_SKIP);
数据量很大,$tmp溢出了。
有没有其它方法其实同样的功能,不用parse_str呢?