Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
$text =preg_replace("/\[[b]codes[/b]\](.+?)\[\/[b]codes[/b]\]/s", '<[b]i[/b]>$1</[b]i[/b]>',$text);
echo$text;
$text = htmlspecialchars_decode ($text);
Чак сега се сетих за това... Имах доста работа по-друго нещо и...kriss каза:preg_replace?
пример при извеждане:
пп: премахване на htmlspecialchars():PHP:$text =preg_replace("/\[[b]codes[/b]\](.+?)\[\/[b]codes[/b]\]/s", '<[b]i[/b]>$1</[b]i[/b]>',$text); echo$text;
PHP:$text = htmlspecialchars_decode ($text);