are overload constructors available in php?
the below class the last constructor is always called
class Config
{
var $vars;
var $db;
// CONSTRUCTOR
function Config($file)
{
$this->vars = array();
include_once($file);
print "RIGHT";
print_r ($this->vars);
}
function Config($config, $db, $dbtable)
{
print "WORNG";
$this->vars = $config->vars;
if($db!='') $this->db = $db;
}
}