how to check value what the value of a variable is in php code example
Example 1: find type in php
gettype($u)
Example 2: check type in php
gettype ( mixed $var ) : string
Example 3: php see if undefined
if (isset($variable)) { /* do something */ };