by_grafitus adlı üyeden alıntı: mesajı görüntüle
Şöyle bir şey yazdım ama denemedim:
function get_valueById($id, $content)
{
	$tag_name = preg_match('<([a-zA-Z]{1,10}).*?id="' . preg_quote($id) . '".*?>', $content, $matches) ? $matches[1] : '';

	if (empty($get_it))
		return false;

	$get_them_between = preg_match('<' . $tag_name . '.*?id="' . preg_quote($id) . '".*?>(.*?)<\/' . $tag_name . '>', $content, $matches) ? $matches[1] : '';

	return $get_them_between;
}
if(empty($get_it)) yerine empty $tag_name olacak sanırım sonradan değişince gözden kaçmış olmalı