Авторизация
 Регистрация   Войти   Забыли пароль? 

delete_single_nbsp() PHP-ФУНКЦИЯ УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ  

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-functions for text / delete_single_nbsp() PHP-ФУНКЦИЯ УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ  


 Russian

delete_single_nbsp() PHP-function DELETING ONLY SINGLE GAPS  

Обновлённый PHP-Fusion Bogatyr / Free CMS PHP-Fusion 7 Bogatyr / PHP-functions for text / delete_single_nbsp() PHP-function DELETING ONLY SINGLE GAPS  


 English

PHP

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
  1. <?php
  2. // ru: УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ &nbsp;
  3. // en: DELETING ONLY SINGLE GAPS &nbsp;
  4. if (!function_exists("delete_single_nbsp")) {
  5. function delete_single_nbsp($text="") {
  6.      $text = str_replace("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "(w(W(5)W)w)", $text);
  7.      $text = str_replace("&nbsp;&nbsp;&nbsp;&nbsp;", "(w(W(4)W)w)", $text);
  8.      $text = str_replace("&nbsp;&nbsp;&nbsp;", "(w(W(3)W)w)", $text);
  9.      $text = str_replace("&nbsp;&nbsp;", "(w(W(2)W)w)", $text);
  10.      $text = str_replace("&nbsp;", " ", $text);
  11.      $text = str_replace("(w(W(5)W)w)", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", $text);
  12.      $text = str_replace("(w(W(4)W)w)", "&nbsp;&nbsp;&nbsp;&nbsp;", $text);
  13.      $text = str_replace("(w(W(3)W)w)", "&nbsp;&nbsp;&nbsp;", $text);
  14.      $text = str_replace("(w(W(2)W)w)", "&nbsp;&nbsp;", $text);
  15.     return $text;
  16. }
  17. }
  18. ?>
Добавить комментарий

Добавить комментарий
Пожалуйста, залогиньтесь для добавления комментария.
Рейтинги
HTML-code and BB-code for blogs and forums

<a href="https://php-fusion.vveb.ws/php-fusion.php?id=5">delete_single_nbsp() PHP-ФУНКЦИЯ УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ &amp;nbsp;</a>


[url=https://php-fusion.vveb.ws/php-fusion.php?id=5]delete_single_nbsp() PHP-ФУНКЦИЯ УДАЛЕНИЕ ТОЛЬКО ОДИНАРНЫХ ПРОБЕЛОВ &amp;nbsp;[/url]

Language: Default
 
Код для PHP-Fusion