[Typo3-dev] Splitting array acording to alphabet

Arne Skjaerholt skjaerho at cpi.no
Fri Jun 17 09:44:02 CEST 2005


I think the best way to do that would be to create an array consisting
only of the last names, and then perform a preg_grep() on that array for
each character range to get the correct lastnames and implode()ing to
get the comma separated strings you want. Using some clever looping you
can probably generate the regexes for preg_grep() programmatically.

Arne
:wq





More information about the TYPO3-dev mailing list