<?php
$html = file_get_contents('https://printerservis.net/Brother_MFC9120cn_Belt_reset.php');

function getWbTextContent($html) {
    preg_match_all('/<div id="(wb_Text\d+)" style="[^"]*top:(\d+)px[^"]*">(.*?)<\/div>/is', $html, $matches);
    $contentParts = [];
    foreach ($matches[1] as $idx => $id) {
        $top = (int)$matches[2][$idx];
        if ($top >= 280 && $top < 1900) {
            $contentParts[$top] = $matches[3][$idx];
        }
    }
    ksort($contentParts);
    return implode("\n", $contentParts);
}

$res = getWbTextContent($html);
echo "EXTRACTED CONTENT LENGTH: " . strlen($res) . "\n\n";
echo substr(strip_tags($res), 0, 1000) . "...\n";
