Просмотр поста

.
ДоХтор
# Udesign (11.07.2016 / 17:23)
$text = '<h3 id="result" style="margin-top: 5px; font-size:36px; color:#227D08;">1 : 0</h3>';
preg_match('~<h3 id="result".*>.*</h3>~', $text , $arr);

echo strip_tags($arr[0]); // 1 : 0

где $t
Да, под твой код можно записать так
preg_match('~<h3 id="result".*>.*</h3>~', $file , $arr);
 
echo strip_tags($arr[0]); // 1 : 0