what about (untested)? $example_data = array(); foreach ($blah_array as $key=>$value) { $example_data[] = array($key, $value); }
-----Original Message----- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2003 11:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Converting Array I've got an array in the following format: Array ( [Jan-1999] => 36.04,140.35,319.53,324.07 [Feb-1999] => 1.78,71.78,320.58,141.97 ) I need it in the following format: $example_data = array( array("Feb-1999",1.78,71.78,320.58,141.97), array("Jan-1999",36.04,140.35,319.53,324.07) ); I'm such an idiot when it comes to arrays that I can't figure this out. How do I do it? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ Information from NOD32 1.436 (20030612) __________ This message was checked by NOD32 for Exchange e-mail monitor. http://www.nod32.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php