oppure stampi direttamente anche l'html:

Codice PHP:
echo("[b]"$var"[/b]");