Вход
Регистрация
PHP коды
| функция ВВ кодов ll
function bb_code ($text ) { $text = preg_replace ( '/[b](.+)[/b]/sU' , '
1
' , $text ); $text = preg_replace ( '/[i](.+)[/i]/sU' , '
1 i>' , $text ); $text = preg_replace ( '/[u](.+)[/u]/sU' , '
1
' , $text ); $text = preg_replace ( '/[s](.+)[/s]/sU' , '
1
' , $text ); $text = preg_replace ( '/' . preg_quote ('[url=' ) . '(.+)](.+) 2;[/url]/sU' , '
1
' , $text ); return $text ; }
Онлайн: 0
Реклама
Наш надёжный хостинг партнер
Купить рекламу