ob_get_clean - flush php
¿Diferencia entre ob_clean y ob_flush? (1)
las variantes *_clean simplemente vacían el búfer, mientras que las funciones *_flush imprimen lo que hay en el búfer (envían los contenidos al búfer de salida).
Ejemplo:
ob_start();
print "foo"; // This never prints because ob_end_clean just empties
ob_end_clean(); // the buffer and never prints or returns anything.
ob_start();
print "bar"; // This IS printed, but just not right here.
ob_end_flush(); // It''s printed here, because ob_end_flush "prints" what''s in
// the buffer, rather than returning it
// (unlike the ob_get_* functions)
¿Cuál es la diferencia entre ob_clean() y ob_flush() ?
Además, ¿cuál es la diferencia entre ob_end_clean() y ob_end_flush() ? Sé que ob_get_clean() y ob_get_flush() obtienen el contenido y finalizan el búfer de salida.