Documentación offline PHP master

ob_tidyhandler

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

ob_tidyhandler

Función callback de ob_start para reparar el buffer

Descripción#

ob_tidyhandler(string $input, [int $mode]): string
```php

Función callback para la función `ob_start` con el fin de reparar el buffer.

## Parámetros

`input`  
EL buffer.

`mode`  
El modo del buffer.

## Valores devueltos

Devuelve el buffer modificado.

## Ejemplos

Ejemplo de `ob_tidyhandler`
test'; ?>

```php

El ejemplo anterior mostrará:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>test</p>
</body>
</html>

Véase también#

ob_start