From manual page: https://php.net/function.ob-get-clean --- ob_get_clean ends the buffer and not just deletes the content. so it does the same thing as ob_end_clean. * Please fix this junk * or finally write the documentation correctly