ereg_replace: Replacing only first occurrence
| From: | Erica Douglass | Date: | Mon, 23 Apr 2001 20:05:25 +0000 |
| Subject: | ereg_replace: Replacing only first occurrence | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49932@lists.php.net to get a copy of this message | ||
I want to only replace the first occurrence of a string in a file using
ereg_replace. Should I use a loop to do this? Any suggestions? Please email
me at corky6921@yahoo.com with suggestions.
Thanks,
Erica