Mailinglisten-Archive |
Hallo Peter,
Thursday, May 18, 2000, 2:46:31 PM, you wrote:
PK> (wie gesagt: PHP3 nicht PHP4 - in_array() steht mir
PK> also nicht zur Verfügung)
was sagt uns das? Selberbasteln, richtig ;-) Ich hatte Problem auch
mal und hab dann mit hilfe der Liste das hier gemacht:
function is_in_array($array,$needle)
{
for($i=0;$i<=count($array);$i++)
{
if($array[$i]==$needle) return(true);
}
}
Jan
php::bar PHP Wiki - Listenarchive