You can create an object in PHP by using the new keyword followed by the class name like $object = new ______.

  • ClassName
  • ObjectName
  • NewObject
  • CreateObject
In PHP, you can create an object by using the new keyword followed by the class name and parentheses. The correct option is "ClassName." This syntax instantiates an object of the specified 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 *