Why can’t I use OOP approach in php using wamp [duplicate]

This question already has an answer here:

I am just a newbie in php and am studying oop.
I just typed this code:

And when I ran it. It said:
Parse error: syntax error, unexpected ‘name’ (T_STRING), expecting variable (T_VARIABLE) in c:wampwwwBasicOOPTesting.php on line 8
Please help.


Source: oop

Leave a Reply