in_array() function not supported on my server... anything else?

From: Date: Thu, 26 Apr 2001 21:23:24 +0000
Subject: in_array() function not supported on my server... anything else?
Groups: php.general 
Request: Send a blank email to php-general+get-50508@lists.php.net to get a copy of this message
Greetings.. This is how I currently check for instances of words and other: for ($i=0; $i < $total_lines; $i++){ $line_array = explode("|",$line[$i]); $swhat=strtolower($txtLinkname); $xos = array(strtolower($line_array[1]),strtolower($line_array[2]),strtolower($line _array[3]),strtolower($line_array[4]),strtolower($line_array[5])); if (in_array($swhat,$xos,true)) { $found++; Problem is, that the server where I have my files don't support in_array. It is claimed that the servers PHP server is on version 4.0, how can this be when in_array is a function that came first with PHP4 (according to my documents) ?? Is there something else I could use? Thanks - Richard

« previous php.general (#50508) next »