I have a small problem that I cannot seem to wrap my head around and hoping someone here might be able to find the problem. I have an variable named $data which is an array of string values and when I use the following code everything works fine.
$data = array(1,2,3,4,5);
$users = implode("," , $data);
echo ($users);
This will produce something like 1,2,3,4,5 which is what I expected, but if I try to follow the same logic on the following piece of code then the result is an empty string.
$data = array(1,2,3,4,5);
$users = implode("," , $data);
$MyArray = array(
$user_ids => array($users)
)
My question then is how do I need to reference the $users variable in this array so it will produce the results I need. (ie 1,2,3,4,5 ...)
Thx, Amy