PHP supports eight primitive types.
Four scalar types:
Note: In this manual you'll often find mixed parameters. This pseudo-type indicates multiple possiblities for that parameter.
The type of a variable is usually not set by the programmer; rather, it is decided at runtime by PHP depending on the context in which that variable is used.
Note that a variable may behave in different manners in certain situations, depending on what type it is at the time. For more information, see the section on Type Juggling.