im trying to replace two ?? chars inside an HTML file as follows:
<?php
$file="test.html";
$q1 = "??";
$q2="?";
$string=file_get_contents($file);
$string=substr_replace("$q1", "$q2",$string);
file_put_contents($file, $string);
?>
but im afraid its not working. it works fine with normal text.
any ideas? thanks in advance!