Page 1 of 1

the colon? double colon?

Posted: Tue Aug 22, 2006 6:35 pm
by jmilane
What does this mean?

Code: Select all

parent::postProcess[);
Is the colon just an OO operator, signifying that this function belongs to the parent object?

What about when it is only a single colon?

Thank you!

Posted: Tue Aug 22, 2006 6:41 pm
by Christopher
The double colon gives static access to methods and properties of a class. The "parent" keyword is how you access methods and properties in an inherited class from within a class.

The single colon is used in several places, such as switch/case statements, alternate control structure syntax and in the ternary conditional operator.

Posted: Tue Aug 22, 2006 6:42 pm
by volka

Posted: Tue Aug 22, 2006 7:08 pm
by Jenk
It's the Paamayim Nekudotayim

Which is Arabic or Hebrew for Double Double Dot. Or something :P

Posted: Tue Aug 22, 2006 7:09 pm
by volka

Posted: Tue Aug 22, 2006 7:10 pm
by Jenk
aye, I did my usual of posting guesses then editing post reference :)

Posted: Wed Aug 23, 2006 2:55 am
by Oren
Jenk wrote:It's the Paamayim Nekudotayim

Which is Arabic or Hebrew for Double Double Dot. Or something :P
"Paamayim Nekudotayim" is actually "Double Colon" in Hebrew :P