0

I'm having a problem in my script class, is giving me the error:

Parse error: syntax error, unexpected '$client' (T_VARIABLE), expecting identifier (T_STRING) 

But I can't figure out what is the problem with the "client Variable".

Zoe
  • 27,060
  • 21
  • 118
  • 148
Mônica R.
  • 225
  • 2
  • 13

1 Answers1

0

While accessing constant class members you need to use self::, but while accessing local variable you can use simply by variable name.

So you need to use self::client instead of $client. Because $client is constant class member.

DEMO or See More Info

Manwal
  • 23,450
  • 12
  • 63
  • 93