note 91474 added to function.array

From: Date: Thu, 11 Jun 2009 16:02:56 +0000
Subject: note 91474 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-156779@lists.php.net to get a copy of this message
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). :) ---- Server IP: 69.147.83.197 Probable Submitter: 75.68.75.168 ---- Manual Page -- http://www.php.net/manual/en/function.array.php Edit -- https://master.php.net/note/edit/91474 Del: integrated -- https://master.php.net/note/delete/91474/integrated Del: useless -- https://master.php.net/note/delete/91474/useless Del: bad code -- https://master.php.net/note/delete/91474/bad+code Del: spam -- https://master.php.net/note/delete/91474/spam Del: non-english -- https://master.php.net/note/delete/91474/non-english Del: in docs -- https://master.php.net/note/delete/91474/in+docs Del: other reasons-- https://master.php.net/note/delete/91474 Reject -- https://master.php.net/note/reject/91474 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156779) next »