Jump to content

for loop combine array into single string


calmchess

Recommended Posts

the follwing for loop loops through an array containing strings.....i need to loop through the array and combine the strings into a single string........How should i do this? please use a for loop as the array's length is dynamic

 

for($j=0;$j<count($arr2);$j++){

$arr_ser =$arr2[$j].":";

 

}

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.