chovekadjo
Registered
Взех класирането на sport1.bg:
Искам тези, който са от първо до трето място да са със зелен цвят, 4-я със оранжев, 5 и 6 с жълто, а 18, 19 и 20 със червен. Някой може ли да помогне 
Код:
header('Content-type: text/html; charset=UTF-8');
$contents = file_get_contents("http://www.sport1.bg/sport1/home/football/world/spa/standings");
preg_match_all('#<table border="1" cellspacing="0" width="100%"\s?>(.*?)</table>#is', $contents, $matches);
$matches = $matches[0];
foreach ($matches as $m) {
echo "<div style='width: 600px; margin: 0 auto;'>$m . <br></div>";
}