Hi,
First here is a example script:
First the constructor creates a variable with reference to it self.
Now when we create a instance of the class and use $test->my_var->foo() ;
how can i find out who called it... foo() would return "my_var"
Now i know your thinking, whats the point in that...
Well these variable will be db table names and this is for looks really:
$this->db->table_name->action() ;
Its for a framework iv been designing,
Any ideas?
Lex