I have the following array
01 03 02 15 05 04 06 10 07 09 08 11 12 14 13 16
I want to convert a string like the following:
Given your array as $myArray, like this:
$newArray = array(); foreach ($myArray as $row) { $rowValue = implode(',', $row); $newArray[] = $rowValue; } $finalString = implode('|', $newArray);