Re: select the lines which start with a certain string
| From: | Jason Wong | Date: | Sat, 10 May 2003 16:45:43 +0000 |
| Subject: | Re: select the lines which start with a certain string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147124@lists.php.net to get a copy of this message | ||
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()
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
War is delightful to those who have had no experience of it.
-- Desiderius Erasmus
*/