你们有办法让一个方法执行完再执行下一次吗
执行过程中有人调用不让他用
global $iscalling; $mytext= 0; function 方法(){ while (iscalling==1) { } iscalling = 1; ... //你的代码 iscalling = 0; }