ob_get_status
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
ob_get_status — Get status of output buffers
Параметри
full_status
-
true to return all active output buffer levels. If false or not
set, only the top level output buffer is returned.
Значення, що повертаються
If full_status is omitted or false a simple array
holding status information on the active output level is returned.
If full_status is true an array
with one element for each active output buffer level is returned.
The output level is used as key of the top level array and each array
element itself is another array holding status information
on one active output level.
An empty array is returned if output buffering is not turned on.
Приклади
Приклад #1 Array returned when full_status is false
Array
(
[name] => URL-Rewriter
[type] => 0
[flags] => 112
[level] => 2
[chunk_size] => 0
[buffer_size] => 16384
[buffer_used] => 1024
)
Приклад #2 Array returned when full_status is true
Array
(
[0] => Array
(
[name] => default output handler
[type] => 0
[flags] => 112
[level] => 1
[chunk_size] => 0
[buffer_size] => 16384
[buffer_used] => 2048
)
[1] => Array
(
[name] => URL-Rewriter
[type] => 0
[flags] => 112
[level] => 2
[chunk_size] => 0
[buffer_size] => 16384
[buffer_used] => 1024
)
)