What is the use of function is_object? Just as the name suggests is it used for checking whether the given argument is a object. What is the return value of this PHP function?
What is the use of function is_object? Just as the name suggests is it used for checking whether the given argument is a object. What is the return value of this PHP function?
Returns TRUE if var is an object, FALSE otherwise.
If you want ot more clarification goto the following site....
URL: PHP: is_object - Manual
------------------
suresh
Ramasri,
As u said, the name suggests.
If I ask you, if something is an object, you would say 'Yes' or 'No', but the function says (returns) 'True' or 'False'
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-
if some object say obj1 of class "class1" is created, to know whether, the checking object(obj1 or other object) is an instance of a class of class "class1" we can use is_object(obj1)