PHP Code: 
<?
$value 
'[img]http://google.com[/img]';
$unwanted = array("[img]""[/img]");
$wanted  = array("[img="" width=200]");
$value=str_replace($unwanted$wanted$value);
echo 
$value;
?>
r4myy Reviewed by r4myy on . Where do i wrong? $value=str_replace($unwanted, $wanted, $value); $unwanted = array("", ""); $wanted = array(""); When i use the above code,nothing happens. Rating: 5