check typeof php

PHP
gettype($var);gettype ( mixed $var ) : string

Source

Also in PHP: