The is_object() function is used to detect whether a variable is an object.
PHP version requirements: PHP 4, PHP 5, PHP 7
bool is_object (mixed $var)
Parameter description:
$var: The variable to be tested.
Returns TRUE if the specified variable is an object, otherwise returns FALSE.
The output is:
bool(false)array(3) { [0]=> string(6) "Google" [1]=> string(6) "Codercto" [2]=> string(8) "Facebook"}