I have this array:
Array ( [e] =>
[r] =>
[c] =>
[Overflow] =>
[f] =>
[b] => [
true] =>
[Stck] =>
[d] =>
[js] =>
)
and i need to get this
e, r, c, Overflow, f, b, true, stck, d, js
The data you want is in the keys of your array, not the values. So you have to implode the keys:
implode(', ', array_keys($array));
use implode()
implode — Join array elements with a string Implode