Good afternoon, I currently have the following
["id"]=> array(1) {
[0]=> string(3) "6,1"
}
I don't know what type of array it is and I want to obtain its keys to store and iterate in a for loop, how do I separate that string so that it stays like this
["id"]=> array(1) {
[0]=> string(1) "6"
[1]=> string(1) "1"
}
try doing the following
$data['id'] = explode(',',$data['id'] );