typeof php variable code example
Example 1: find type in php
gettype($u)
Example 2: getttype php
gettype ( mixed $var ) : string
gettype ("SALUT") => string
gettype (2) => integer
...etc ...
"bool"
"integer"
"double"
"array"
"object"
"resource"
"NULL"
"unknown type"
Example 3: check type in php
gettype ( mixed $var ) : string