<?php
echo $m1 = memory_get_usage();
echo "
";
"$var_string="123";"
echo $m2 = memory_get_usage()-$m1;
<?php echo $m1 = memory_get_usage(); echo "<br />"; "$var_string= "123";" //这里多了一对 "" ,去掉外层"" echo $m2 = memory_get_usage()-$m1;
$var_string = "123";
你的123旁边的两个双引号标的不对,而且没区分大小写。应该是 "123";
123不用引号试试,我也不是很记得