reference/outcontrol/functions/ob-get-level.xml
af7044e82ac0abe745ce3dfe2169e69a7e8e342f
...
...
@@ -28,6 +28,17 @@
28
28
Returns the level of nested output buffering handlers or zero if output
29
29
buffering is not active.
30
30
</para>
31
+
<caution>
32
+
<simpara>
33
+
The value for identical levels between <function>ob_get_level</function>
34
+
and <function>ob_get_status</function> is off by one.
35
+

36
+
For <function>ob_get_level</function>
37
+
the first level is <literal>1</literal>.
38
+
Whereas for <function>ob_get_status</function>
39
+
the first level is <literal>0</literal>.
40
+
</simpara>
41
+
</caution>
31
42
</refsect1>
32
43

33
44
<refsect1 role="seealso">
...
...
@@ -35,6 +46,7 @@
35
46
<para>
36
47
<simplelist>
37
48
<member><function>ob_start</function></member>
49
+
<member><function>ob_get_status</function></member>
38
50
<member><function>ob_get_contents</function></member>
39
51
</simplelist>
40
52
</para>
41
53