Code: Select all
$temp = explode(', ', $artist_alphabetic);
Code: Select all
$temp = split('[, ]', $artist_alphabetic);
it would also be better to do instead of
Code: Select all
if (in_array ($temp[1], array('The', 'De', 'Het', 'Van', 'Le', 'Les', 'Die')))
Code: Select all
if (in_array (strtolower($temp[1]), array('a', 'the', 'de', 'het', 'van', 'le', 'les', 'die')))
CU