I am sure this is an easy question for those who work with PHP every day.
My problem is that i read a file into a variable, and sometimes i want to change certain words in th text that i just read.
How do i do that, i have searched the manual, but with no luck (Or i have looked in the wrong place)
$open = fopen("c:\test.txt", "r");
$search = fread($open, 100000);
fclose($open);
echo $search;
Let's say that i want to change all ocurrences of "changethisword" in $search
How do i do that ?