# jekillen@xxxxxxxxxxx / 2006-11-25 22:19:05 -0800: > Hello; > I am writing some code that will format results of a search for display. > I need to split an array into several different arrays but I won't know > before hand how many, so, I am looking for a way to dynamically > generate arrays for this purpose. > My present direction is to use the following code: > > for($i = 0; $i < $c; $i++) > { eval('$a_'.$i.' = array();'); } what's wrong with: for($i = 0; $i < $c; $i++) { $a[$i] = array(); } -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php