This is a discussion on Static members within the PHP Programming forums, part of the Web Development category; Classes definitions can now include static members (properties), accessible via the class. Common usage of static members is in the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
Classes definitions can now include static members (properties), accessible via the class. Common usage of static members is in the Singleton pattern. |
| Sponsored Links |
| |||
The Singleton is one of the simplest Patterns to understand. It's common usage is to ensure that only one instance of a class is ever instantiated. The reason for wanting such behaviour varies but typically it is because only one object instantiated from the source class is required and you want the resulting object to be available throughout an application, i.e. globally available. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hello To all the members of this forum | satyaraghavendra | Introductions | 1 | 08-25-2007 01:51 AM |
| Static Global Variable and Static Local Variable | vigneshgets | C and C++ Programming | 1 | 05-30-2007 11:50 AM |
| difference between a static and a non-static inner class | vigneshgets | Java Programming | 1 | 05-23-2007 11:02 PM |
| Java Static | swoosh | Java Programming | 3 | 05-08-2007 04:36 AM |
| Which forum has a biggest members? | montyauto | The Lounge | 1 | 03-12-2007 06:28 AM |