PHP new Keyword

PHP Keywords : Create an object and output the value of one of its properties

Definition and Usage

The new keyword is used to create an object from a class.

Related Pages

Learn more about classes and objects in our PHP OOP - Classes and Objects Tutorial.

❮ PHP Keywords