嘿,我需要从字符串中删除所有图像,但我找不到正确的方法.
这是我尝试过的,但它不起作用:
preg_replace("/<img[^>]+\>/i", "(image) ", $content); echo $content;
有任何想法吗?
php string
php ×1
string ×1