yöntem 1;
echo str_ireplace(array('[IMG]', '[/IMG]'), '', $veri);
yöntem 2;
echo preg_replace('~\[IMG\](.*?)\[/IMG\]~si', '\\1', $veri);