Examveda
Examveda

Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo?

A. $obj = new $foo;

B. $obj = new foo;

C. $obj = new foo ();

D. obj = new foo ();

Answer: Option C


This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept