(.*)?<\/h'.$h.'>/si', $html, $match, PREG_SET_ORDER); if ($match) { foreach($match as $m) { $titraille[] = ''.$m[1].''; } } } return join("\r\n", $titraille); } function human_filesize($bytes, $decimals = 2) { $sz = 'BKMGTP'; $factor = floor((strlen($bytes) - 1) / 3); return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; }