Results 1 to 4 of 4

Thread: Query about a Function

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    56

    Query about a 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?


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: Query about a 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


  3. #3
    Expert Member
    Join Date
    Nov 2006
    Answers
    518

    Re: Query about a Function

    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-

  4. #4
    Junior Member
    Join Date
    Mar 2007
    Answers
    3

    Re: Query about a Function

    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)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact