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! Link to comment https://forums.phpfreaks.com/topic/79934-solved-how-do-i-loop-data-into-an-array/ 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. Link to comment https://forums.phpfreaks.com/topic/79934-solved-how-do-i-loop-data-into-an-array/#findComment-404874 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.