se aggiungi i " è ovvio che da errore

Codice PHP:
print("[img]img/banner[/img]"); 
Usa gli apici singoli