. Весь шаблон. preg_match('||Uis', $stat, $matches); // получаем массив строк preg_match_all('||s', $matches[0], $matches); $arr_td = array(); $arr_tr = array(); foreach ($matches[0] as $value) { preg_match_all('|(.*?)|s', $value, $matches); foreach ($matches[0] as $v) { $arr_td[] = strip_tags($v); } if (!empty($arr_td)) { $arr_tr[] = $arr_td; } $arr_td = array(); } function cmp($a, $b) { if ($a['10'] == $b['10']) { return 0; } return ($a['10'] < $b['10']) ? -1 : 1; } $data_tmp = array(); for ($i = 0; $i < 1000; $i++) { $data_tmp = $arr_tr; uasort($data_tmp, 'cmp'); } ?> '; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '/'; } ?>
0 1 2 3 4 5 6 7 8 9 10 11 12
' . $value[0] . '' . $value[1] . '' . $value[2] . '' . $value[3] . '' . $value[4] . '' . $value[5] . '' . $value[6] . '' . $value[7] . '' . $value[8] . '' . $value[9] . '' . $value[10] . '' . $value[11] . '' . $value[12] . '