Questions | Login

Top / PHP

What does :: symbol mean in php code?

demo 21 Dec 2008 05:15pm
Hi

I want to know the meaning of the symbol :: in php.Here is the code snippet
$var = file1 :: getinfo();

Thanks

Answers

demo 21 Dec 2008 05:22pm
:: Is the scope resolution operator.
More information can be found here
http://au.php.net/keyword.paamayim-nekudotayim
demo 21 Dec 2008 06:09pm
it means the parent is calling the child function.

usually use in calling classes...

classname::function()
demo 24 Dec 2008 12:28am
I found a site good for programmers to ask questions. There are some experienced programmers there, so you can get help there. Registration is free by the way.

http://www.geekpolice.net/

Related

Submit Answer

You must be logged in to post an answer. Please Login or Register.

Powered by phpMyAnswers.