PHP method chaining benefits?

Still on the PHP-OOP training wheels, this question may belong on failblog.org. =)What are the benefits of method chaining in PHP?I'm not sure if this is important, but I'll be calling my method statically. e.g.\[code\]$foo = Bar::get('sysop')->set('admin')->render();\[/code\]From what I've read, any method which returns \[code\]$this\[/code\] is allowed to be chained. I just learned this is new in PHP5. Seems to me there may be speed benefits if I don't have to instantiate a whole new object (calling it statically) and just select the few methods I need from the class?Do I have that right?
 
Top