Since php is a loosely typed language, there is no support for constructor or method overloading.
Depending on what your goal is, this can be accomplished easily.
function constructor($name = '')
{
if (trim(strlen($name)) == 0)
{
// no parameter provided, take action 1
}
else
{
//parameter provided, take action 2
}
}
hopefully this put you on the right track
p.