Skip to content

Glossary: PHP Basics

new

The keyword that creates an object from a class and runs its constructor, as in `new Product('Mug', 18.00)`.

Where the book teaches it

Related terms

classobjectconstructor