Availability in PHP 4.0
Returns the type of the variable.
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$var |
mixed |
not | Variable to check |
string
Returns the type of the variable.
Returns one of the following:
booleanintegerdouble (for historical reasons, double is returned instead of float, based on the C implementation of PHP, which uses double)stringarrayobjectresourceNULLunknown type (unknown type)Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.
Rád vám pomůžu:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.