How do I change a static variables value in PHP?

后端 未结 4 785
天命终不由人
天命终不由人 2020-12-16 03:56

This is a simplified version of what I want to accomplish:

In my script I want a variable that changes true and false everytime the script is executed.



        
4条回答
  •  感情败类
    2020-12-16 04:34

    A static value will not persist over executions. Every time the script is executed $bool is initialized. I think you should persist this value in a file to keep it simple.

提交回复
热议问题