Afficher un message
Vieux 30/07/2007, 23h13   #4
Rik
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: unexpected T_STRING, expecting T_VARIABLE

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
  Réponse avec citation
 
Page generated in 0,04451 seconds with 9 queries