Question:What is method chaining? 

Answer 


Method chaining enables us to vastly simplify the syntax by connecting multiple functions. Example:

$this->db->select(‘name,email’)->from(‘users’)->where(‘id’,5)->limit(10,20);

 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 947
What is method chaining?
Copyright © 2024. Powered by Intellect Software Ltd