Mailinglisten-Archive |
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; }
}
>welches ist der eleganteste Workaround für die in
>PHP 3 noch nicht vorhandene Funktion in_array()?
ein update auf php4 :-)
kiri
php::bar PHP Wiki - Listenarchive