PHP错误级别打印

<html>
<?php


//   break [n]
//    continue [n]   n指的是循环的层数,从当前开始内到外数。

function zhuanhuan($n)
{
    $s = decbin($n);
    $s = str_pad($s, 16, "0", STR_PAD_LEFT);
    $s = str_replace("1", "<font color='red'>1</font>", $s);
    return $s;
}

$arr = array("E_ERROR", "E_WARNING", "E_PARSE", "E_NOTICE", "E_CORE_ERROR", "E_COMPILE_ERROR", "E_COMPILE_WARNING", "E_USER_ERROR", "E_USER_WARNING", "E_USER_NOTICE", "E_STRICT", "E_ALL");
echo "<table border='1'>";
foreach ($arr as $key => $value) {
    echo "<tr>";
    echo "<td>$value</td>";
    echo "<td>" . constant($value) . "</td>";
    echo "<td>" . zhuanhuan(constant($value)) . "</td>";
    echo "</tr>";
}
echo "</table>";

?>

</html>



PHP错误级别打印