Home > Backend Development > PHP Tutorial > php5.1.6情况下,出现RECURSION。求立!

php5.1.6情况下,出现RECURSION。求立!

WBOY
Release: 2016-06-13 12:30:42
Original
873 people have browsed it

php5.1.6情况下,出现RECURSION。求破!!!
$m = array('1');
$m['a'] = $m;
print_r($m);
die;
?>

这是简单的一个测试。输出的结果是
Array ( [0] => 1 [a] => Array *RECURSION* )

但是我想要的结果是:
Array ( [0] => 1 [a] => Array ( [0] => 1 ) )

应该改那个地方? 求大神解答

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template