RE: [PHP] php4.2.0 (win) error message question

From: Date: Tue, 21 May 2002 04:19:00 +0000
Subject: RE: [PHP] php4.2.0 (win) error message question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-98561@lists.php.net to get a copy of this message
Hebrew On Tue, 21 May 2002, Martin Towell wrote: > I understand that I put :: when I shouldn't have. But why is it called > T_PAAMAYIM_NEKUDOTAYIM and not T_DOUBLE_COLON or something else? It's not > latin or something is it? > > -----Original Message----- > From: Peter [mailto:php@vfsa.com.au] > Sent: Tuesday, May 21, 2002 1:19 PM > To: Php > Subject: RE: [PHP] php4.2.0 (win) error message question > > > > try looking it up in the manual on php.net i just did a search for it and > found a few results such as > http://www.php.net/manual/en/tokens.php#AEN98855 which leads > to (when you > find it in the table) > > http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php > > -----Original Message----- > From: Martin Towell [mailto:martin.towell@world.net] > Sent: Tuesday, 21 May 2002 12:55 PM > To: 'php-general@lists.php.net' > Subject: [PHP] php4.2.0 (win) error message question > > > Just thought I'd try defining a class method outside of the class definition > block. > Here's the code > > <? > class test > { > function test() { echo "In constructor\n"; } > } > > function test::blah() { echo "hello world\n"; } > > $x = new test(); > $x->blah(); > ?> > > Here's the error I got > > Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting '(' > in C:\WINNT\Profiles\mtowell\Desktop\test1.html on line 7 > > So, okay, I can't do that. I'd have to define "blah()" inside the > "class > test{}" block > > But my question is: what does "T_PAAMAYIM_NEKUDOTAYIM" mean? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#98561) next »