php static 声明的变量在函数执行完毕不会被删除;

<?php function myTest() { static $x=0; echo $x; $x++; } myTest(); myTest(); myTest(); ?>
相关文章
相关标签/搜索