I want PHP to look through a varible and find a certian text, and then replace that text with something else, for example, in perl, this would look like: $line =~ s/texttofind/textforreplacing/g;
http://php.net/ereg_replace $foo = 'You are here'; $foo = ereg_replace("are","were",$foo); echo $foo;
output: 'You were here'
Thanks a ton! Your great!