I am wondering in Some of PHP frameworks uses methods like
Class::function()->function($parm)->function($parm);
for an example in Laravel
DB::table('users')->where('name', 'John')->value('email');
How these methods are internally working?
How can I build such Kind of method of my own?
Please help me out.