In the ZEND Reference Guide I saw this:

$select = $db->select()->from('posts')->order('date_created DESC');

Now I'm wondering: what does that second arrow do? What does using more than one arrow when working with an object do? And can I use it all the times? For example

$myclass->function()->anotherfunction()->hello;

?

Great, that's what I wanted to know, thanks! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.