The is_object() function is an inbuilt function in PHP which is used to check whether the given value is an object or not.
bool is_object( mixed $var )
Parameters: This function accepts single parameter as mentioned above and described below:
- $var: It contains the value of variable that need to be check.
Return Value: It returns TRUE if the value of variable is an object, FALSE otherwise.
bool(true) bool(true) bool(false)
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.