If I have this array:
array(1) {
["ID"]=>
string(1) "3"
}
array(1) {
["ID"]=>
string(1) "6"
}
array(1) {
["ID"]=>
string(1) "9"
}
And I want to have an output of this: 3, 6, 9
How can I concatenate or implode those array values to put in a variable so that I will use that variable with a value of like this: 3, 6, 9
in this: $this->db->set('SecondaryRoleID', $imploded);