select the lines which start with a certain string
| From: | Antti | Date: | Sat, 10 May 2003 16:32:18 +0000 |
| Subject: | select the lines which start with a certain string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-147122@lists.php.net to get a copy of this message | ||
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?
-antti