Users Also Read
MCQ's Search Engine
Electrical Engineering
Mechanical Engineering
Civil Engineering
Automobile Engineering
Chemical Engineering
Computer Engineering
Electronics Engineering
Medical Science Engg
Which one of the following can be used to instantiate an object in PHP assuming class name to be Foo? | |
A. | $obj = new foo; [Wrong Answer] |
B. | $obj = new foo (); [Correct Answer] |
C. | $obj = new $foo; [Wrong Answer] |
D. | obj = new foo (); [Wrong Answer] |