phpbar.de logo

Mailinglisten-Archive

[php] Re: =?ISO-8859-1?Q?=5Bphp=5D_preg=5Fmatch=2Fin=5Farray_f=FCr_Arrays_=3F?=

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

Roland Tapken php_(at)_phpcenter.de
Sat, 18 Aug 2001 15:00:19 -0400


Hi!

Mach's mit einer Schleife:

reset($wordlist);
while(list(,$word) = each($wordlist)) {
  if(preg_match("/^$letter/",$word)) {
    mache irgendwas... 
  }
}
  
cu, Roland Tapken
--
<========{ tapken_(at)_engter.de }========>
    /"\                          
    \ /  ASCII ribbon campaign
     X   against HTML mail
    / \  and postings  
<========={ ICQ#: 18715473 }=========>



php::bar PHP Wiki   -   Listenarchive