Function __global->ob_start

Definitions

sources_custom/phpstub.php

  • Turn on output buffering.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$output_callback ?mixed No No Null N/A N/A Callback after output is going to flush, works as a filter (null: none)
$chunk_size integer No No 0 N/A N/A Buffer will be auto-flushed after this amount (0: no limit)
$flags integer No No 112 N/A N/A A PHP_OUTPUT_HANDLER_* constant

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Turn on output buffering.
 *
 * @param  ?mixed $output_callback Callback after output is going to flush, works as a filter (null: none)
 * @param  integer $chunk_size Buffer will be auto-flushed after this amount (0: no limit)
 * @param  integer $flags A PHP_OUTPUT_HANDLER_* constant
 * @return boolean Success status
 */

function ob_start($output_callback = null, int $chunk_size = 0, int $flags = 112) : bool