delete certian text from file


#1

I want to take a line of text, we’ll leave that at $textline, and delete it from a file. I’m not sure of all the php functions yet, so help me out, thanks.


#2

don’t work much with text files so check out here (http://www.php.net/strings) for the string functions list. You might also wish to check out the regular expression functions (There is a link on the same page).

File stuff: http://www.php.net/manual/en/ref.filesystem.php


#3

Look at [phpref]preg_replace[/phpref].