skpaul82.wordpress.com
How to find src attribute of image tag in php?
In my case, I had a string containing exactly one tag (and no other markup). And I was trying to get the src attribute. // get the featured image $image = ‘