/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$str = '<h2> this is a test</h2><img src="pathrourl.jpg" alt="test" />'; $find = '/<img.*src="(.*?)"/'; if ( $match ) echo $img[1];
Comments
