note 58298 deleted from function.extract by mazzanet

From: Date: Mon, 31 Oct 2005 06:03:51 +0000
Subject: note 58298 deleted from function.extract by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97854@lists.php.net to get a copy of this message
Note Submitter: benles at bldigital dot com ---- In case you want to strip a prefix instead of add one: function extract_strip($arr, $prefix) { foreach ($array_keys($arr) as $key) { $field = str_replace($prefix, "", $key); exec('$this->' . $field . '=$arr[$key];'); } }

« previous php.notes (#97854) next »