I set my foreach result in a array variable, the array give me some id's,
$categoryIDs = explode(',', $result->category_id);
I tried already to find solution but nothing works, any sources are: Converting indexed array to normal or simple array How to convert an array to object in PHP? Display array elements as normal CSV - PHP
If i show result with print_r() i see correct result, but how can i convert it into: 32,432,21,543?