$update = false;
$text = "";
$text = $ob["~PROPERTY_DESCRIPTION_VALUE"]["TEXT"];
$arText =[];
$arText = explode ("</div>", $text);
if (count($arText) > 1) {
foreach ($arText as $l) {
$l = $l."</div>";
if (strpos($l, $condition, 0) !== false) {
$l = str_replace("&nbsh2;", " " , $l);
$update = true;
}
echo($text);
$result .= $l;
}
}
<img alt="Лечение пищевой аллергии у детей" src="/sites/default/files/users/user1/3541810h2_l-min.jpg" style="float:right; height:299px; width:448px">
var players = [];
for (var i = 1; i < countBlocksCamers; i++) {
players[i] = videojs('video' + i);
}
<button class="button cookie__button js-accept-cookies-btn" id="accept-cookies" onclick="setcookie('AcceptCookieNew', true, { expires: 365, path: '/', domain: 'emcmos.ru', secure: true })">
</button>
<button class="button cookie__button js-accept-cookies-btn" id="accept-cookies" onclick="setcookie('AcceptCookieNew', true, {expires: 365, path: '/'})">
</button>
<button class="button cookie__button js-accept-cookies-btn" id="accept-cookies"
onclick="setcookie('AcceptCookieNew', 'yesNEW', { expires: 365, path: '', domain: 'emcmos.ru', secure: true })">
</button>
if (strpos($dir, 'treatment')) {
if (!empty($treatment)) {
echo ($treatment);
}
} else if (strpos($dir, 'programs-and-services')) {
if (!empty($programsAndServies)) {
echo ($programsAndServies);
}
} else if (strpos($dir, 'doctors')) {
if (!empty($doctors)) {
echo ($doctors);
}
} else if (strpos($dir, 'questions')) {
if (!empty($questions)) {
echo ($questions);
}
} else {
echo (123);
}
if (strpos($dir, 'treatment')) {
if (!empty($treatment)) {
echo ($treatment);
}
} else if (strpos($dir, 'programs-and-services')) {
if (!empty($programsAndServies)) {
echo ($programsAndServies);
}
} else if (strpos($dir, 'doctors')) {
if (!empty($doctors)) {
echo ($doctors);
}
} else if (strpos($dir, 'questions')) {
if (!empty($questions)) {
echo ($questions);
}
} else {
echo (123);
}
Башка не варит под вечер )