[Typo3-dev] Splitting array acording to alphabet (Solution)
Martin Kutschker
martin.kutschker-n0spam at no5pam-blackbox.net
Fri Jun 17 13:54:01 CEST 2005
Georg Ringer schrieb:
> Hello,
>
> thanks to Arne & Michael but I got the solution from a friend who is "a
> little" bit better in php than me =>
>
> <?
> $namen =
> array(Andy,Peter,Ziegler,Meier,Dengler,Mueller,Franske,Hans,Anton,Arber,Xsav
> er,Lempke,Koeler,Merkel,Kohl,Goekmen,Neumann,Geinzer,Kunstmann,Schroeder,Cra
> sselt);
> sort($namen);
> $az = array (ABC,DEF,GHI,JKL,MNO,PQR,STU,VWX,YZ);
You should use quotes for strings.
Masi
More information about the TYPO3-dev
mailing list