Something like... $array_length = count( $myArray ); $myArray[$array_length + 1] = $new_data;
This what your after? I think there might be a function for this tho, but I'm a bit thick :p chris kranz fatcuban.com -----Original Message----- From: Matt Babineau [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 21:55 To: [EMAIL PROTECTED] Subject: [PHP-WIN] ARRAY Question! Ok here goes! Lets say I have an array: $myArray = array(); Now lets say I am looping over something <LOOP> How do I simply add a new value to the array?? I just want to start tacking on new key/value pairs to the array. I must be missing something really basic, but I'm not getting it LOL. <END LOOP> Thanks,. <MAtt> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php