tryphp_func_var_is_object.php:
cars; } $obj = new stdClass(); $obj->cars = array("Volvo", "BMW", "Audi"); var_dump(get_cars(null)); echo "
"; var_dump(get_cars($obj)); ?>
bool(false)
array(3) { [0]=> string(5) "Volvo" [1]=> string(3) "BMW" [2]=> string(4) "Audi" }