PHP OC_Util obEnd function is a method that is used to stop capturing output buffer contents and returns the data that was being stored in the buffer. This function takes no parameter and is declared in the "OC_Util" package library.
Example 1: Displaying Output Buffered Content In this example, the ob_end_flush() function is used to display the output buffer contents:
Example 2: Storing Output Buffered Content in a Variable In this example, the ob_get_clean() function is used to store the output buffer contents in a variable:
Example 3: Clearing Output Buffered Content In this example, the ob_clean() function is used to clear the output buffer contents:
ob_start(); echo "Hello World"; ob_clean(); ?>
These functions are declared in the OC_Util package library that helps to manipulate and manage output buffering in a PHP application.
PHP OC_Util::obEnd - 19 examples found. These are the top rated real world PHP examples of OC_Util::obEnd extracted from open source projects. You can rate examples to help us improve the quality of examples.