OOP: Classes as Namespace (Part 2)Tag: OOP Category: PHP Basicpost: 17 Nov 2007 read: 817 Methods in class can be accessed in two ways: dinamically or statically. Dinamically, it mean instantiating an object. We have done in past tutorial. Statically, by treating the class as a namespace. Look following code:
We use :: operator. Namespace can avoid naming conflicts in your library.
| ||
| | Give Your Opinion | Recommend |
|

