Re: Read lines
| From: | Felix Kronlage | Date: | Mon, 26 Mar 2001 10:34:22 +0000 |
| Subject: | Re: Read lines | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7804@lists.php.net to get a copy of this message | ||
On Mon, Mar 26, 2001 at 12:38:38PM +0200, info@tcp-ip.nl wrote:
don't know why this is on php-db....
> I want to read lines from a file between <!--begin--> And <!--End-->
read the file line by line, match every line with a regexp.
If you hit the line <!--begin--> start stuffing the lines in array.
Once you hit the line <!--End--> stop reading the file, close it and
your have every line in between in an array. should do the job just
fine.
-fkr
--
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0
|http://www.hazardous.org/ | whois -h whois.ripe.de
FKR-RIPE |
|all your base are belong to us | shame on me | fkr@IRCnet |