[ILUG] PHP/mysql content management system
John P. Looney
valen at tuatha.org
Tue Jan 20 08:40:56 GMT 2004
On Mon, Jan 19, 2004 at 05:22:11PM +0000, Dave O Connor mentioned:
> In my experience, perl is a lot easier to modularise, a lot clearer for some
> things (i.e. calling $object->munge() instead of
> doCertainProccessPHPHooray($object)).
Er, you can do $object->munge() in PHP, if you write the class etc.
That said, I love it's class definitions. You can just make a class with
a nice strict class definition...and later it'll accept any typos and the
like in your code:
class service {
var $name;
var $host;
var $port;
}
$object=new service;
$object->name="eric";
$object->host="localhost";
$object->poooort="29";
and it'll work with no warnings. Wonderful. Anyone know if this will be
fixed in PHP5 ?
John
More information about the ILUG
mailing list