Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Access All Objects Of A Class

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Access All Objects Of A Class

Postby bijan » Wed Oct 31, 2012 4:37 am

hi
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!
bijan
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Oct 31, 2012 4:31 am

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 4 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.