Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 20
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\mail_bbcode_include.php on line 21
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in F:\OpenServer\domains\php-fusion.vveb.ws\includes\bbcodes\search_bbcode_include.php on line 39
PHP
<?php
// ru: УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ
// en: DELETING ONLY SINGLE GAPS
if (!function_exists("delete_single_nbsp")) {
function delete_single_nbsp($text="") {
$text = str_replace(" ", "(w(W(5)W)w)", $text);
$text = str_replace(" ", "(w(W(4)W)w)", $text);
$text = str_replace(" ", "(w(W(3)W)w)", $text);
$text = str_replace(" ", "(w(W(2)W)w)", $text);
$text = str_replace(" ", " ", $text);
$text = str_replace("(w(W(5)W)w)", " ", $text);
$text = str_replace("(w(W(4)W)w)", " ", $text);
$text = str_replace("(w(W(3)W)w)", " ", $text);
$text = str_replace("(w(W(2)W)w)", " ", $text);
return $text;
}
}
?>
|
Добавить комментарий Пожалуйста, залогиньтесь для добавления комментария.
|
|
<a href="https://php-fusion.vveb.ws/php-fusion.php?id=5&lang=ru"></a>
[url=https://php-fusion.vveb.ws/php-fusion.php?id=5&lang=ru][/url]
|