The second one is calling a method of an instantiated object.
What this means, is that somewhere there is
$user = new User() // It may not necessarily be named user
alex
2010-07-15 01:36:08
The second one is calling a method of an instantiated object.
What this means, is that somewhere there is
$user = new User() // It may not necessarily be named user
When you use the "->" operator you dealing with a method or property of an object. Do you have the $user object/class defined?
Start the file with <?php
not just <?
. In WAMP short_open_tag
is not enabled in php.ini
by default.