Skip to content

Glossary: PHP Basics

use

Also written: use statement

A statement that imports a class from a namespace so you can write its short name, such as `use KettleCrane\Product;`. PHP's own classes need it too inside a namespace.

Where the book teaches it

Related terms

namespace