RE: [PHP] in_array() function not supported on my server... anyth ing else?

From: Date: Fri, 27 Apr 2001 03:06:04 +0000
Subject: RE: [PHP] in_array() function not supported on my server... anyth ing else?
Groups: php.general 
Request: Send a blank email to php-general+get-50551@lists.php.net to get a copy of this message
yeah.. the loop. see php.net/arrays most of the coolest array functions were introduced in PHP4 if you are trying to make a dynamic portable application you might want to look into phpversion(); this will tell you which version it runs, and based on that will select the best way to find the results on any server. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) maxim@phpbeginner.com www.phpbeginner.com -----Original Message----- From: Richard [mailto:oblivion@lunamorena.net] Sent: Friday, April 27, 2001 6:23 AM To: php-general@lists.php.net Subject: [PHP] in_array() function not supported on my server... anything else? 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#50551) next »