if i have a php script containing some functions, then all i have to do is include() the file and then call the functions.
if i had an object (taking the example from php.net):
<?php
class foo
{
function do_foo()
{
echo "Doing foo.";
}
}
$bar = new foo;
$bar->do_foo();
?>
what is the point of having the object, when i could just call the
functions?
what are the uses of objects over functions/groups of functions?
sorry if this is an innane or frequently asked question.
--
Mat Harris OpenGPG Public Key ID: C37D57D9
[EMAIL PROTECTED] www.genestate.com
msg90819/pgp00000.pgp
Description: PGP signature

