Extract() with 2D array

From: Date: Sat, 03 Mar 2001 11:21:29 +0000
Subject: Extract() with 2D array
Groups: php.general 
Request: Send a blank email to php-general+get-42432@lists.php.net to get a copy of this message
Does extract() work on multidimensional arrays? IOW, I have an array like... array($elem1=>array($val1,$val2),$elem2=>$val3) ...from which I'd like to extract $elem1 and $elem2. Should this be possible with extract()? The docs just say the function takes an array as a parameter, but don't specify whether or not the array can have more than one dimension. Since I'm having trouble making this work, I have a feeling the answer is no, but wanted to double-check in case it's actually my code that's at fault. TIA! -- CC

« previous php.general (#42432) next »