I'm very very new to PHP so any help will do :-)
I want to change -- to : in a large file. What have I done wrong?
$handle = fopen('april.log.txt', 'r');
while (!feof($handle)){
$line = fgets($handle, 1024);
$to_replace =array('--',':');
$clean = str_replace($to_replace,':',$line);
echo $line;
}
:characters with:?