get typeof variable php code example Example 1: typeof php gettype($var); Example 2: find type in php gettype($u)