I have this page (print.php). In that file, I want to to include a text
file from "songs/breathe.txt", and replace all instances of "<b" with
"<span" and "</b>" with "</span>". I know how I should use str_replace
and I tried to do this:
<?php
$replace_a=str_ replace("<span" ,"<b",include(" text/breathe.txt"));
$replace_b=str_ replace("</span>",</b>",$replace_a) ;
?>
but it doesn't work.
file from "songs/breathe.txt", and replace all instances of "<b" with
"<span" and "</b>" with "</span>". I know how I should use str_replace
and I tried to do this:
<?php
$replace_a=str_ replace("<span" ,"<b",include(" text/breathe.txt"));
$replace_b=str_ replace("</span>",</b>",$replace_a) ;
?>
but it doesn't work.
Comment