php静态变量示例
php静态变量示例 ```{.php}lt;?phpfunction test(){ static $a=0;// but if $a=0;echo $a++.#39;lt;brgt;#39;; } test();test();test();?gt;```
<?php function test(){ static $a=0; // but if $a=0; echo $a++.'<br>'; } test(); test(); test(); ?>
精彩图集
精彩文章