$userIdList is an array that contains users ids!
I can’t make this foreach to loop though all of them! It only gets the first id?
foreach ($userIdList as $userId)
{
$questions = BOL_UserService::getInstance()->getUserViewQuestions($userId);
if ( !empty($questions['data'][$userId]) )
{
$data = array();
$test= array();
foreach ( $questions['data'][$userId] as $key => $value )
{
if ( is_array($value) )
{
$questions['data'][$userId][$key] = implode(', ', $value);
$test[] = $questions['data'];
}
}
}
}
print_r($test);