Thread: Return self ?
View Single Post
Old 11-12-2008, 08:06 PM   #2 (permalink)
Runar
The Contributor
 
Runar's Avatar
 
Join Date: Nov 2008
Location: Norway
Posts: 58
Thanks: 20
Runar is on a distinguished road
Default

I know I used $this in a situation similar to your first example. In your last example, the actual chaining, I did something like this:

PHP Code:
$class->first()->second(); 
I am not sure if there is any significant difference on static and non-static classes when chaining, but I guess other people will answer that question.
Send a message via MSN to Runar
Runar is offline  
Reply With Quote
The Following User Says Thank You to Runar For This Useful Post:
Tanax (11-12-2008)