php is type of code example Example 1: php get type of object gettype($object); Example 2: find type in php gettype($u)