Limiting the number of returned elements with preg_split()
<? $sea_creatures = "A;B, C,D, E; F"; $creature_list = preg_split('/, ?/',$sea_creatures, 3); print "The last element is $creature_list[2]"; ?>