Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which feature allows us to call more than one method or function of the class in single instruction?

a) Typecasting
b) Method Including
c) Method adding
d) Method chaining

Answer: d
Explanation: When many methods are called in a single instruction in PHP, it is called method chaining. Following is a basic example of method chaining in php: $a = new Order(); $a->CreateOrder()->sendOrderEmail()->createShipment();

Join The Discussion