[Solved] How to get image URL within HTML tags?


thanks for your answers.i could solve my problem with this code.hope help other guys.

$text = $row["your html text from database row"]; 
preg_match('/< *img[^>]*src *= *["\']?([^"\']*)/i', $text, $img);
            $pics=$img[1];  

output is ($pics)= ( images/akhbar/5/q103.jpg )

solved How to get image URL within HTML tags?