<?php $var1="[i]this is just a stest you jsfajz[/i]"; echo preg_replace("/\[i\](.*)\[\/i\]/i", "<i>\\1</i>", $var1); ?>
You have javascript disabled. You will not be able to edit any code.