how to see the typr of data in php code example Example 1: find type in php gettype($u) Example 2: check type in php gettype ( mixed $var ) : string