Reply to Re: unexpected T_STRING, expecting T_VARIABLE

Your name:

Reply:


Posted by Rik on 07/30/07 22:13

On Mon, 30 Jul 2007 23:59:54 +0200, Rik <luiheidsgoeroe@hotmail.com> wrote:

> On Mon, 30 Jul 2007 23:17:35 +0200, Jeff
> <it_consultant1@hotmail.com.NOSPAM> wrote:
>> public test()
>
> public function test()
>
> HTH,

Oh, and about the 'cryptic' message: 'public', not followed by 'function'
(with possbile keyword in between like 'static') is assumed to be a
property of the class, so it has to start with $. The parser didn't even
come to point where it could realise you tried to create a method: it saw
a 'naked' string, hence the 'expected var but got a string'.
--
Rik Wasmus

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация