I need to have Title, some text after comma
and the Title
needs to be bold. I was thinking the way to do that would be to add <strong>
tag at the beginning and somehow add a closing </strong>
tag right before the comma.
I sort of found something that could do that: Insert string at specified position but it wasn't really working for me, maybe I did something wrong?
$newstr = substr_replace($oldstr, '</strong>', substr($oldstr, ','), 0);
does not work for me. Any ideas on what's wrong there?
Edit: Why did I get a downvote?