This question already has an answer here:
- Convert PHP string to JSON array 5 answers
How can i convert string ids
$ids = '8552479333,8552438544,';
to look like an array
["8552479333","8552438544"]
I tryed :
$ids = (explode(",",$ids,-1));
but this gives me :
Array ( [0] => 8552479333 [1] => 8552438544)
</div>