$output = preg_match_all('/<img.*?src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);

ile çözdüm genede çok saolun arkadaşlar