Results 1 to 2 of 2

Thread: :: in PHP

  1. #1
    Join Date
    Dec 2006
    Posts
    3,970
    Tokens
    0

    Latest Awards:

    Default :: in PHP

    I was wondering what "::" is used for, I saw it in Jewish Bears signature. It was like $var = hi :: function().

    Thanks
    Lets set the stage on fire, and hollywood will be jealous.

  2. #2
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    It's the scope resolution operator, it's similar to -> only you don't need to do $blah = new blah(); you just do include('file.php'); then className::functionName();

    It allows access to static, constant and over-ridden members / methods of a class.

    http://php.mirrors.ilisys.com.au/man...ekudotayim.php
    read more here.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •