From a checkbox submit(post) i have an array like this. So this value will be dynamic in form submit. The variable name is $my_values.
Output
Array
(
[0] => 1
[1] => 2
[2] => 2_6
[3] => 3
[4] => 3_7
[5] => 3_8
[6] => 4
[7] => 4_9
[8] => 4_10
[9] => 4_11
[10] => 4_12
[11] => 4_13
[12] => 4_13_14
[13] => 5
)
Expected Output
1,2,3,4,5,6,7,8,9,10,11,12,13,14
So I need to get the output as above in a single variable. How can I achieve that?
In other words :
$my_values is having the array as i have mentioned. i want one more variable $my_results which will convert the array values and give it as a single value with comma seperator (i.e 1,2,3,4,5,6,7,8,9,10,11,12,13,14)
Thanks Kimz