Newbie: What does the symbol " - > " mean in php?

Discussion in 'PHP' started by birdsq, Oct 30, 2007.

  1. #1
    Can anyone of you help me ...
     
    birdsq, Oct 30, 2007 IP
  2. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #2
    Its a closing tag for php..
     
    MeetHere, Oct 30, 2007 IP
  3. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #3
    -> is used to reference a variable or function of a class.

    ?> is the closing tag for php

    Brew
     
    Brewster, Oct 30, 2007 IP
    birdsq likes this.
  4. satusaja

    satusaja Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    e.g.

    $object->variable

    $object->function()
     
    satusaja, Oct 30, 2007 IP
  5. birdsq

    birdsq Peon

    Messages:
    810
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    how can we declare the object
    is it like : $object = new classname()
     
    birdsq, Oct 30, 2007 IP
  6. Brewster

    Brewster Active Member

    Messages:
    489
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #6
    Yes, that's right. You can find more info about classes here: http://uk2.php.net/zend-engine-2.php

    Brew
     
    Brewster, Oct 30, 2007 IP