Re: select the lines which start with a certain string

From: Date: Sat, 10 May 2003 21:02:43 +0000
Subject: Re: select the lines which start with a certain string
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-147146@lists.php.net to get a copy of this message
Jason Wong wrote:
On Sunday 11 May 2003 00:32, Antti wrote:
I have this: $lines = file('file.txt'); ...and now I have to put lines which start eg. with 'TITLE' into an array. How can I do this?
foreach() & strpos()
This really helped alot, thanks! -antti

« previous php.general (#147146) next »