Re: Search

From: Date: Tue, 06 Aug 2002 01:05:02 +0000
Subject: Re: Search
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15135@lists.php.net to get a copy of this message
because both things have a beginning and an end, it's rather simple. for example, in pseudo-code for a text file; open file for read only begin loop until EOF or search item found (flag) read one line of text process line of text if found flag = = yes end loop print out result array is the same thing, just diff syntax... :) one thing to consider is whether you want to exit the loop when the item is found. or you can continue and the only exit statement of the loop is when EOF. that way, you can find multiple occurances of the thing you are searching for... "alexmart.php" wrote: > How can i search from a txt file or from an array ? > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Leo G. Divinagracia III ldivinag@csuhayward.edu

« previous php.windows (#15135) next »