Reputation: 155
$item->description = preg_replace("/\<center\>\<a href=\"(.*)\"\>\<img alt=\"\" src=\"(.*)\" \/\>\<\/a\>\<\/center\>/", "$2", $item->description);
But I need to put result $2
into string $item->image
.
How to do it?
Upvotes: 0
Views: 65