How to use class-level constants in php5.5
This article mainly introduces "how to use class-level constants in php5.5". In daily operation, I believe many people have doubts about how to use class-level constants in php5.5. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use class-level constants in php5.5". Next, please follow the editor to study!
Not long ago, php released the first stable version of 5.5. it introduces a class-level constant named `CLASS`, which is valid for all classes and returns the full name of the class.
The copy code is as follows: