note 91474 deleted from function.array by danbrown

From: Date: Thu, 11 Jun 2009 16:04:08 +0000
Subject: note 91474 deleted from function.array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156780@lists.php.net to get a copy of this message
Note Submitter: DanAxtell.com ---- RE: unarray user function by kamil at navikam dot pl, 03-Jun-2009 10:42 Your "unarray" function is essentially the definition of the "extract" function in PHP4+ (http://www.php.net/manual/en/function.extract.php). Extract also has some neat options to add prefixes and prevent the overwriting of existing variables. So, I think people would better off using the built-in function. Still, your code is a nice illustration of the oft-ignored double dollar notation for variable variables in PHP (which I'd actually forgotten about). :)

« previous php.notes (#156780) next »