- $bbcode = str_ireplace(array("\n"), array(""), $bbcode);
- $bbcode = str_ireplace(array("<b>", "</b>"), array("[b]", "[/b]"), $bbcode);
- $bbcode = str_ireplace(array("<i>", "</i>"), array("[i]", "[/i]"), $bbcode);
- $bbcode = str_ireplace(array("<s>", "</s>"), array("[s]", "[/s]"), $bbcode);
- $bbcode = str_ireplace(array("<br />"), array("\n"), $bbcode);
- $bbcode = str_ireplace(array("<br/>"), array("\n"), $bbcode);
- $bbcode = str_ireplace(array("<br>"), array("\n"), $bbcode);
+ $bbcode = str_ireplace(["\n"], [""], $bbcode);
+ $bbcode = str_ireplace(["<b>", "</b>"], ["[b]", "[/b]"], $bbcode);
+ $bbcode = str_ireplace(["<i>", "</i>"], ["[i]", "[/i]"], $bbcode);
+ $bbcode = str_ireplace(["<s>", "</s>"], ["[s]", "[/s]"], $bbcode);
+ $bbcode = str_ireplace(["<br />"], ["\n"], $bbcode);
+ $bbcode = str_ireplace(["<br/>"], ["\n"], $bbcode);
+ $bbcode = str_ireplace(["<br>"], ["\n"], $bbcode);