<?php $var = "[h1]This is Just a text, [h1]and this inside it[/h1] This just example[/h1]"; echo str_replace(['[h1]', '[/h1]'], ['<h1>', '</h1>'], $var);
You have javascript disabled. You will not be able to edit any code.