|
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]
|