Changes

PHP Object Oriented Programming

7 bytes added, 19:51, 6 June 2007
Defining and Calling Methods
}
?>
</pre>
Now that we have defined our getter and setter methods to get and set the account values we can call the methods. This is done by specifying the name of the object on whic the methods are being called, followed by '->' then the name of the method we are calling (including the parentheses containing any arguments required):