<?php
/ define a generic object /
class boop {};
//create new object from class boop
$obj = new boop;
$obj->dbhost = "localhost";
/ connect to the database /
db_connect($obj->dbhost);
?>
why would any one create an empty class like this?
actually this a short example from a more complex site...
i can;t figure out wats the purpose of an empty class boop...
any idea wats the advantage of doing this?