Hi
I am trying to get to grips with OO php and am trying out some tutorials from a book. I seem to be having a problem declaring all my variables and functions as public. If I do then I get the following error message:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in c:\create\nat_test\06\page.php on line 5
If I remove all the occurences of public then it works fine.
Please can someone explain what's going wrong?
Thanks in advance,
Natalie