phpbar.de logo

Mailinglisten-Archive

[php] in_array()

[php] in_array()

Cyrill Schumacher webmasterbhs_(at)_bluewin.de
Fri, 28 Jan 2000 09:13:20 +0100


dir kann geholfen werden:

function is_in_array($array,$string) {
 if(is_array($array)=="1" AND is_string($string)=="1") {
 for($i=0;$i<count($array);$i++)

  if($string == $array[$i]) { return true; }
 }
 }else { echo "Array is not an array or the string is not a string";
exit; }
}

kiri



php::bar PHP Wiki   -   Listenarchive