::

Discussion in 'PHP' started by cancer10, Jun 14, 2008.

  1. #1
    What does :: means in the following code?


    function _DEFAULT() {
    
    		mosMenuBar::media_manager( 'banners' );
    
    }
    PHP:

    Thanx
     
    cancer10, Jun 14, 2008 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    It's called a scope resolution operator, or paamayim-nekudotayim as mehmetm said, and allows a static, constant, and overridden class method to be executed without the need for instantiating an object of that class. So instead of using $object->method() you use class::method().
     
    qazu, Jun 14, 2008 IP
  3. cancer10

    cancer10 Guest

    Messages:
    364
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    wots the diff b/w $object->method() and class::method()?
     
    cancer10, Jun 14, 2008 IP
  4. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #4
    mehmetm, Jun 14, 2008 IP
  5. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
  6. WeBuster

    WeBuster Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #6
    "paamayim-nekudotayim" - It's in Hebrew :)
    Does anybody knows what it mean?
     
    WeBuster, Jun 14, 2008 IP
  7. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #7
    mehmetm, Jun 14, 2008 IP
  8. WeBuster

    WeBuster Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #8
    That's not fair LoL....
    :D
     
    WeBuster, Jun 14, 2008 IP