The problem at hand: I have one variable ZeroC that stores two arrays. I would like to send it to another PHP file using curl but only the first array sends. To get around this issue I tried imploding the variable into a string hoping to convert the two arrays into one long string, however, only the first array goes through. The implode function doesn't place a delimiter at the last item in the array (as seen in bold).
I can't concatenate the two arrays since they are stored in the same variable. If anyone has any ideas on how to solve this issue, thank you in advance.
if($i==0){
$thisk= implode("%", $comments);
print_r($thisk);
}
Current output after using implode:
0%Correct def statement %0%Correct function Name %0%Correct parameter 0%Correct def statement %0%Correct function Name %0%Correct parameter
Before imploding it (as an Array):
Array ( [0] => 0 [1] => Correct def statement [2] => 0 [3] => Correct function Name [4] => 0 )
Array ( [0] => 0 [1] => Correct def statement [2] => 0 [3] => Correct function Name [4] => 0 )