我有以下内容:
$input = '<p>This is a sample of a content I am working with <br /> Check out this image <img src="http://mydomain.com/1.png" /> or this one <img src="http://mydomain.com/2.png" />';
如何在数组中获取这两个 url?
['<img src="http://mydomain.com/1.png" />','<img src="http://mydomain.com/2.png" /'>]