PDA

View Full Version : delete a piece of text from a file...


lankinator
08-04-2007, 01:57 PM
how do you make a script that will delete a piece of text from a file eg:

text.html contains "hello my name is...";

the script will remove "hello" from text.html?

djr33
08-04-2007, 09:22 PM
str_replace('hello','',$string);