Nieuw lid |
|
$input = preg_replace("#\[img\](.*?)\[/img\]#i","<img src=\"\\2\">", $input);
$input = preg_replace("#\[img\](.*?)\[/img\]#i","<img src=\"\\2\">", $input);
zoiets
EDIT was fout
Deze werkt wel
$input = "[img]http://www.google.com/logo.jpg[/img]";
$input = preg_replace("#\[img\](.*?)\[/img\]#i","<img src=\"\\1\">", $input);
echo $input;
$input = "[img]http://www.google.com/logo.jpg[/img]"; $input = preg_replace("#\[img\](.*?)\[/img\]#i","<img src=\"\\1\">", $input);
|