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 one of the following is the right way to invoke a method?

a) $object->methodName();
b) object->methodName();
c) object::methodName();
d) $object::methodName();

Answer: a
Explanation: “->” is a dynamic class method invocation in PHP.

Join The Discussion