ob_flush

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

ob_flushDescarrega (envia) o valor de retorno do manipulador de saída ativo

Descrição

ob_flush(): bool

Esta função chama o manipulador de saída (com a opção PHP_OUTPUT_HANDLER_FLUSH), descarrega (envia) seu valor de retorno e descarta o conteúdo do buffer de saída ativo.

Esta função não desliga o buffer de saída ativo como as funções ob_end_flush() ou ob_get_flush() fazem.

ob_flush() falhará sem um buffer de saída ativo iniciado com a opção PHP_OUTPUT_HANDLER_FLUSHABLE.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Erros/Exceções

Se a função falhar ela gera um E_NOTICE.

Veja Também

  • ob_start() - Ativa o buffer de saída
  • ob_get_contents() - Retorna o conteúdo do buffer de saída
  • ob_end_flush() - Flush (send) the return value of the active output handler and turn the active output buffer off
  • ob_get_flush() - Flush (send) the return value of the active output handler, return the contents of the active output buffer and turn it off
  • ob_clean() - Limpa (apaga) o conteúdo do buffer de saída ativo
To Top