PHP implementation of "global static variable class"

zhaozj2021-02-12  168

Below is a global static variable class, the functions in the class are static functions,

Note the symbol "&" inside, he is used to perform address reference. If you are not familiar with the reference method, please refer to the relevant chapter in the PHP manual.

In addition, this example is implemented in the PHP's PEAR class library, and the static global ERROR in Pear.php is implemented.

转载请注明原文地址:https://www.9cbs.com/read-6120.html

New Post(0)