Dachte überladen wäre sowas:
function foo($host = 'localhost')
{
.....
}
function foo($host = 'localhost', $port = '3306')
{
.....
}
function foo($host = 'localhost', $port = '3306', $pw = 'xxx')
{
....
}
und php sucht dann je nachdme wieviele parameter übergeben werden die "richtige" funktion raus?!
Zumindest kenn ich das aus c++ so |