catch the first image in post content

Catch the url of the first image in post content. Helpful if no featured image.

i', $post->post_content, $matches);
	$first_img = $matches [1] [0];

	if (empty($first_img)){ Defines a default image
		$first_img = "";
	}
	return $first_img;
}

?>