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();
Correct Answer: $object->methodName();
“->” is a dynamic class method invocation in PHP.