PHP4 foreach command work around for php3

From: Date: Thu, 18 Jan 2001 09:58:25 +0000
Subject: PHP4 foreach command work around for php3
Groups: php.windows 
Request: Send a blank email to php-windows+get-5091@lists.php.net to get a copy of this message
I'm kinda new to this php stuff. The server I'm working on only has php3 and the script I have is a PHP4 script. It has this command in it. foreach($l_array_of_elements as $l_search_element){ if ($l_search_element != "") if ($case_sensitive) { $l_search_condition.="(INSTR(name,'$l_search_element') OR INSTR (description,'$l_search_element')) $concatenation "; } else { $l_search_condition.="(name LIKE '%$l_search_element%' OR description LIKE '%$l_search_element%') $concatenation "; } } Does anyone now of a clean work around. I have tried a few differant things and none seem to work correctly. Thanks in advanced. ============================================== Charles Williams Accent Computer & Network Services Markt 2 D-95679 Waldershof Tel: +49 (0) 9231 972670 Fax: +49 (0) 9231 972671 http://www.acns-online.com ==============================================

« previous php.windows (#5091) next »