Skip to content

Glossary: PHP Basics

cast

Also written: casting, type cast

Converting a value to another type by putting the type in brackets before it, such as `(int) "3 bags"`, which gives 3.

Where the book teaches it

Related terms

type jugglingtype