代码:
<?php //显示与释放内存 //以下数字取决于linux系统类型与版本 echo memory_get_usage() . "n"; // 36640 $a = str_repeat("Hello", 4242); echo memory_get_usage() . "n"; // 57960 unset($a); echo memory_get_usage() . "n"; // 36744 ?>
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.