helloo help me pleasee
in file text.txt this show:
<b>Marz</b>: messages<br/>
<b>Marz</b>: messages<br/>
<b>lee</b>: messages<br/>
<b>lan</b>: messages<br/>
//now how to delete paragraph for lines Marz??
this is my coding i create ,its just name marz deleting but
the message not delete. is there any other way instead of using str-replace?
<?php
$nama ="Marz";
$index = file_get_contents("text.txt");
$bodycont = str_replace("<b>$nama</b>:","",$index);
$fh = fopen("text.txt","w");
fwrite($fh,$bodycont);
fclose($fh);
?>
in file text.txt this show:
<b>Marz</b>: messages<br/>
<b>Marz</b>: messages<br/>
<b>lee</b>: messages<br/>
<b>lan</b>: messages<br/>
//now how to delete paragraph for lines Marz??
this is my coding i create ,its just name marz deleting but
the message not delete. is there any other way instead of using str-replace?
<?php
$nama ="Marz";
$index = file_get_contents("text.txt");
$bodycont = str_replace("<b>$nama</b>:","",$index);
$fh = fopen("text.txt","w");
fwrite($fh,$bodycont);
fclose($fh);
?>