Capy-Bearer Documentation

ob_get_close

host call

Capy

function ob_get_close() string

Description

ob_get_close() returns the current output buffer contents and closes the buffer.

Output then returns to the previous buffer.

Return Values

the current output buffer contents

Example

Capy

ob_start()
print("captured")
var output := ob_get_close()
print(output, "\n")