array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.ob-get-level.php', 1 => 'ob_get_level', ), 'up' => array ( 0 => 'ref.outcontrol.php', 1 => '输出控制 函数', ), 'prev' => array ( 0 => 'function.ob-get-length.php', 1 => 'ob_get_length', ), 'next' => array ( 0 => 'function.ob-get-status.php', 1 => 'ob_get_status', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/outcontrol/functions/ob-get-level.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
ob_get_level — 返回输出缓冲机制的嵌套级别
此函数没有参数。
返回嵌套的输出缓冲处理程序的级别;或者是,如果输出缓冲区不起作用,返回零。
ob_get_level() 和 ob_get_status() 之间相同级别的值相差 1。对于
ob_get_level(),第一级为 1
。而对于
ob_get_status(),第一级为 0
。