checking type of variable in php

PHP
gettype ( mixed $var ) : string

Source

Also in PHP: