$genreList;
function directorGen($array)
{
foreach($array as $value)
{
$genreList[] = $value;
}
}
//later..
directorGen($title->genres());
This code results in a NULL array. If I replace $genreList[] = $value with echo $value everything prints out like expected. Any ideas?