ID: 10203 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: Feature/Change Request Description: foreach weakness no, 'list' should assign an array to a list of variables. $arr = array(array(1, 2), array(3, 4)); foreach ($arr as list($a, $b)) echo "$a $b\n"; Previous Comments: --------------------------------------------------------------------------- [2001-04-06 07:19:30] [EMAIL PROTECTED] and what should it do? i guess you want to have key and value in one step? this is done by the foreach($array as $key => $value) construct, does that satisfy your needs? --------------------------------------------------------------------------- [2001-04-06 06:53:12] [EMAIL PROTECTED] hello foreach ($array as list($a, $b)) ; won't work. is there any hope this will change in future? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10203 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]