Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
- New php-forum User
- Posts: 1
- Joined: Wed Oct 31, 2012 4:31 am
using a static counter variable in the __constuct method of a class lets us to count the number of objects created so far .
is there a way to to access all Live objects instantiated from a class.(not just the number of them but the names of them !)
i want to write a simple code for a human class . and in its __construct method i want that object to say hello to all previously created objects!
Return to “PHP coding => General”
Who is online
Users browsing this forum: valenDay93 and 2 guests