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:C
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 ();