Mailinglisten-Archive |
On Sat, 10 Feb 2001 14:02:26 +0100, Cyrill Schumacher wrote:
>> $VOKALE = xxx("aeiuoAEIOU", $STRING);
>> $KONSON = xxx("^aeiouAEIOU", $STRING);
>
>
>$VOKALE = preg_split("/[aeiuo]+/ism", $STRING);
>$KONSON = preg_split("/[^aeiou]+/ism", $STRING);
>
servus,
ich glaub ich hab nicht richtig beschrieben was ich suche, und zwar folgendes:
$STRING = ABCDEXYZ
so und nun möchte ich alle Vokale in einem Array haben und alle Konsonanten in
einem Array. also so:
$VOKAL : (A,E)
$KONSONANTEN : (C,D,X,Y,Z)
also alle vokale rausfiltern in ein array und den rest in das konsonanten
array.
gruß
thomas
php::bar PHP Wiki - Listenarchive