![]() |
The ob_get_level() function is an inbuilt function in PHP that is used to get the current output buffer level in a nested level. Output buffering is a feature in PHP that allows you to capture and manipulate output before it is sent to the browser or client. Syntaxob_get_level(): int ParameterThis function does not accept any parameters. Return ValuesThe ob_get_level() function returns an integer value that represents the current value of the output buffering. Program 1: The following program demonstrates the ob_get_level() Function. PHP
Output: This is content inside the buffer.This is content inside the new buffer. Program 2: The following program demonstrates the ob_get_level() Function. PHP
Output: Output buffering level: 1 You are in the top-level buffer. This is content inside the buffer. Reference: https://www.php.net/manual/en/function.ob-get-level.php |
Reffered: https://www.geeksforgeeks.org
PHP |
Related |
---|
![]() |
![]() |
![]() |
![]() |
![]() |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |