Jump to content

Simple Array question...Maybe


bmopro

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.