Hi All, i found this code which is ok but i need this to highlight whole line in colour, for example like:
1. Mr Johan call in office on sunday
2. No More call to johan
3. Johan has Paid All
I am telling the script to start from star and end on star, each line need to be different colour.
this is what i found so far how can we amend this in my way
<?php
$word = 'hello';
$sentence = 'hello world';
$sentence = str_ireplace($word,'<span style="background-color:#ffff00;">'.$word.'</span>',$sentence);
echo $sentence;
?>