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