how to check whether an object consist a string or not in php code example Example: php is object is_object($var)