in_array error

From: Date: Thu, 29 Nov 2001 20:07:39 +0000
Subject: in_array error
Groups: php.general 
Request: Send a blank email to php-general+get-76078@lists.php.net to get a copy of this message
Can anyone explain why I am getting the following error? Fatal error: Call to unsupported or undefined function in_array() in includes/chinlib21stCentury.inc on line 3131 Code: if( (is_array($List)) AND (is_array($RemoveList)) ) { $ListItems = count($List); sort($List); for($ListItem=0; $ListItem < $ListItems; $ListItem++) { //printf("<br>List value: $List[$ListItem]<br>\n"); if(!(in_array($List[$ListItem],$RemoveList)) AND (trim($List[$ListItem]) <> "") ) // Line 3131 $diff[] = $List[$ListItem]; } }elseif($debugit){ echo "In function ListDiff List and RemoveList are NOT arrays<BR>"; } return ($diff); Thanks, Steve Osborne Database Programmer Chinook Multimedia Inc.

« previous php.general (#76078) next »