bmopro Posted October 25, 2006 Share Posted October 25, 2006 Hello,I have a loop set up to store data in an array...My question is this...How would i take the data stored in an array and put it in one variable as follows...$array[0] = 'data_0';$array[1] = 'data_1';$array[2] = 'data_2';Turn this array into a varaible like this...$data = 'data_0, data_1, data_2';Thanks for the help!!Bri Link to comment https://forums.phpfreaks.com/topic/25097-simple-array-questionmaybe/ Share on other sites More sharing options...
roopurt18 Posted October 25, 2006 Share Posted October 25, 2006 $data = implode(', ', $array); Link to comment https://forums.phpfreaks.com/topic/25097-simple-array-questionmaybe/#findComment-114455 Share on other sites More sharing options...
bmopro Posted October 25, 2006 Author Share Posted October 25, 2006 That's It!!!!Thank You so Much!!!!Bri Link to comment https://forums.phpfreaks.com/topic/25097-simple-array-questionmaybe/#findComment-114459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.