parseByFilename($fname); $sections = array(); foreach ($a['credits']['section'] as $key => $value) { $sections[] = new CreditsSection($value); } return $sections; } }