An object in PHP is created using the new keyword followed by the class name.

  • new
  • create
  • instanceof
  • object
In PHP, to create an object from a class, you use the new keyword followed by the class name and parentheses. The correct option is "new." This instantiates an object based on the defined class. For more information, consult the PHP documentation on creating objects: http://php.net/manual/en/language.oop5.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *