Hey, I need to delete all images from a string and I just can\'t find the right way to do it.
Here is what I tryed, but it doesn\'t work:
preg_replac
You need to assign the result back to $content as preg_replace does not modify the original string.
$content
preg_replace
$content = preg_replace("/<img[^>]+\>/i", "(image) ", $content);