Sunday, March 30, 2014

How to overload a PHP constructor properly?

The answer is obviously this:

if(func_num_args()==0){
//do nothing
}else{
if(func_num_args()>0 && isset(func_get_args[0])){

}
}

No comments:

Post a Comment