data type php check

PHP
gettype ( mixed $var ) : string
gettype($u)
Source

Also in PHP: