RE: [PHP] Looping needs to re-open parm file

From: Date: Thu, 19 Dec 2002 17:55:07 +0000
Subject: RE: [PHP] Looping needs to re-open parm file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128888@lists.php.net to get a copy of this message
> I'm reading a paramter file and a text file. > Per line of the text file I want to check if there is a word in there from > the parameter file. > However I need to open and read the parameter file for each line in the > text > file. How can I change this? Can't you read the param file first into an array, and then loop through the text file, using in_array() to see if a line matches a param? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/

« previous php.general (#128888) next »