bobleny Posted December 3, 2007 Share Posted December 3, 2007 I have information that I want to loop into an array... while ($condition = TRUE) { Add information into array1; } I don't know how else to explain it. I simple want to echo an unspecified amount of data from a loop (either a while loop or a for loop, I don't care which...) into an array... Any ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
trq Posted December 3, 2007 Share Posted December 3, 2007 <?php $array = array(); while ($condition = TRUE) { $array[] = // data to add } ?> You might firstly want to look at implode though, depending on what kind of data you have. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.