Which PHP keyword is used to create an object from a class?
Correct answer B. new
Explanation
The new keyword creates an instance of a class, for example $car = new Car(); and calls the class constructor if one exists.
Answer checked How we write and check questions
Discussion