at my current website i am using this code to get the first image , witch is inside the post
$first_img = '';
    $my1content = AD($row['post_content']);
    $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $my1content, $matches); 
    $first_img = $matches [1] [0];
    if(empty($first_img)){ //Defines a default image
        $first_img = "/img/default.png";
    }
I wanted to know how to get all the images that are in the post, not only the first one. Thank you for reading this message.
 
    