" tag on a string given and replace with a closing "" tag. I can't modify the promo string, so all I can."/> " tag on a string given and replace with a closing "" tag. I can't modify the promo string, so all I can."/> " tag on a string given and replace with a closing "" tag. I can't modify the promo string, so all I can"/>
خرید بک لینک

Vote count: 0

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>";

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 16 فروردين 1395 ساعت: 11:08

صفحه بندی