![]() |
The ob_get_status() is an inbuilt function in PHP that is used for retrieving the status of the output buffer. Syntaxob_get_status(bool $full_status = false) : array ParameterThis function accepts only one parameter which is described below.
Return ValueThe ob_get_status() function returns an array that contains all the information related to the output buffer. Program 1: The following program demonstrates the ob_get_status() Function. PHP
Output: This is content inside the buffer.Array ( [name] => default output handler [type] => 0 [flags] => 112 [level] => 0 [chunk_size] => 0 [buffer_size] => 16384 [buffer_used] => 34 ) Program 2: The following program demonstrates the ob_get_status() Function. PHP
Output: Output buffering is not active. This is content inside the buffer.Output buffering is still active. Reference: https://www.php.net/manual/en/function.ob-get-status.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 16 |