php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24856 Extract taking multiple arguments
Submitted: 2003-07-29 12:52 UTC Modified: 2003-07-29 14:25 UTC
From: dave at psntn dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
 [2003-07-29 12:52 UTC] dave at psntn dot com
Description:
------------
Would it be possible to have the extract() function to have multiple arrays passed to it in different arguments.  So the code would look to see if that argument is an array, then if it is it would extract the variaables into a temp. var then apply profixes and other things then finish and return all the variables extracted from the array(s)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-29 14:16 UTC] sniper@php.net
Why?

 [2003-07-29 14:25 UTC] dave at psntn dot com
So you dont have to do:
extract($thisarray);
extract($thatarray);
extract($theOtherArray);
extract($anotherArray);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 13:01:30 2024 UTC