RE: [PHP] Delete/Remove a line
| From: | Greg Donald | Date: | Tue, 11 Jul 2000 18:24:43 +0000 |
| Subject: | RE: [PHP] Delete/Remove a line | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5971@lists.php.net to get a copy of this message | ||
Yes.
Read the file into an array, explode it using carriage returns as the
delimiter.
Delete the item in the array that needs deleting, then print the array back
to the text file.
Greg
> -----Original Message-----
> From: Jason Bryner [mailto:jason@focusdesigngroup.com]
> Sent: Tuesday, July 11, 2000 1:21 PM
> To: PHP General
> Subject: [PHP] Delete/Remove a line
>
>
> Is there a way to delete a line from a text file in PHP? Any
> ideas would be
> helpful.
>
> Jason Bryner
> jrbryner@southern.edu
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>