I want this code to find first "<br>" tag on a string given and replace with a closing "</div>" tag. I can't modify the promo string, so all I can do is modify through the code only. How do I do that? Here is my code:-
$promo[$i] = str_replace('<div class="well">','<div class="well"><div class="promo-subTitle">',$promo[$i]);
Here is the string based on the variable $promo[$i]:
$promo[1] = "<div class="promo"><div class="header">Welcome bonus for you! <br> We have a promo now! <br></div>";
