note 88304 deleted from language.oop5.overloading by danbrown

From: Date: Mon, 19 Jan 2009 22:27:05 +0000
Subject: note 88304 deleted from language.oop5.overloading by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149484@lists.php.net to get a copy of this message
Note Submitter: ted devito ---- would be nice... class Test { public $a, $b, $c; public $opts = array(); function __construct () { foreach(func_get_args() as $arg => $val) : if (property_exists($this,$arg)) $this->$arg = $val; else $this->opts[$arg] => $val; endforeach; } } anybody know how to do something like this?

« previous php.notes (#149484) next »