determine type in function php

PHP
gettype($u)
Source

Also in PHP: