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 Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted October 25, 2006 Share Posted October 25, 2006 $data = implode(', ', $array); Quote Link to comment 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 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.