Possible Duplicate:
How to extract img src, title and alt from html using php?
This would be an example of string:
$src = '<img src="/avatars/admin.jpg" class="avatar 23 avatar-30 avatar-default" height="30" width="30" style="width: 30px; height: 30px;" alt="avatar">';
$out
should be /avatars/admin.jpg
Problem is that /avatars/admin.jpg
is path to avatar of current logged user, so it's dynamically changed.
How to get $out
in simplest way?