CodeExplorer ParseID3v2GenreString example
$thisfile_id3v2_flags['extfoot_footer'
] =
(bool) ($id3_flags & 0x40
);
$thisfile_id3v2_flags['experim_footer'
] =
(bool) ($id3_flags & 0x20
);
$thisfile_id3v2_flags['isfooter_footer'
] =
(bool) ($id3_flags & 0x10
);
$thisfile_id3v2['footerlength'
] = getid3_lib::
BigEndian2Int(substr($footer, 6, 4
), 1
);
} } // end footer
if (isset($thisfile_id3v2['comments'
]['genre'
])) { $genres = array
();
foreach ($thisfile_id3v2['comments'
]['genre'
] as $key =>
$value) { foreach ($this->
ParseID3v2GenreString($value) as $genre) { $genres[] =
$genre;
} } $thisfile_id3v2['comments'
]['genre'
] =
array_unique($genres);
unset($key,
$value,
$genres,
$genre);
} if (isset($thisfile_id3v2['comments'
]['track_number'
])) { foreach ($thisfile_id3v2['comments'
]['track_number'
] as $key =>
$value) { if (strstr($value, '/'
)) { list
($thisfile_id3v2['comments'
]['track_number'
][$key],
$thisfile_id3v2['comments'
]['totaltracks'
][$key]) =
explode('/',
$thisfile_id3v2['comments'
]['track_number'
][$key]);
}