phpbar.de logo

Mailinglisten-Archive

[php] =?iso-8859-1?Q?Re:_[php]_preg=5Fmatch/in=5Farray_f=FCr_?= Arrays ?

[php] Re: [php] preg_match/in_array für Arrays ?

Bobby Eichholz php_(at)_phpcenter.de
Sat, 18 Aug 2001 16:33:24 +0200


habs jetzt folgendermassen gelöst:

$letters=array("A","B",...;"Z");
array_walk($letters,"print_letters");

function print_letters($letter){
         global $wordlist;
         while(list($key,$word) = each($wordlist)) {
                 if(preg_match("/^".$letter."/i",$word)){
                         $match=true;
                 }
         }
         if($match){
                 ...
         }
}
thx all


------------------------------------------------------------------
Mental·Design·Factory
Agentur für Web-Design und Kommunikation
Bobby Eichholz
Construction·Technical Supervising
http://www.mental-defact.de
Mail: bob_(at)_mental-defact.de
Mobil: 0171/93 44 212
Fon: 030/69 51 82 11
Fax: 030/69 51 82 16
------------------------------------------------------------------



php::bar PHP Wiki   -   Listenarchive