Please watch: "oops concepts in php in hindi"
https://www.youtube.com/watch?v=35AjG2TehuM
-~-~~-~~~-~~-~-
This video explains how we can achieve method chaining in php classes. This feature saves lots of code and provide better code readability.
If you have worked on codeigniter or any other framework they are making use of this method chaining feature for like Active Data Records.
If you have worked even a little on jquery then you have already used this cool feature there.