编辑代码

<?php 
 header("Content-type:text/html;charset=utf-8");
 function test-static(){
     static $n=0;
     $n++;
     echo "调用一次"."n=".$n"<br />";
 }
 test_static();
 test_static();
 ?>