I wanted to create this php object hierarchy for a project I'm working on, and I'm stuck with this one problem. How do I create objects within objects so I can reference them something like this:
$myobject->myembededobject->myfunction();
Every time I try executing code like that I always end up with some sort of error message. Also something else I wanted to do was being able to access properties from functions that return objects with code something like this:
$myobject->myfunction()->myotherfunction();
Any ideas?