cleanup, docs

This commit is contained in:
root
2026-06-16 23:02:45 +00:00
parent ea08d5f28b
commit b8b56cf3dd
160 changed files with 1076 additions and 511 deletions
+14 -9
View File
@@ -2,15 +2,20 @@
String ob_get_close()
:params
return value : content of the current output buffer
return value : the current buffer's contents
:content
Returns the current output buffer's contents and discards the buffer, switching back to the previous one on the stack. This is the usual way to capture rendered output for post-processing.
:example
ob_start();
print("hello ");
print("world");
String html = ob_get_close();
print("captured ", html.length(), " chars: ", html, "\n");
:see
>ob
:content
Returns the contents of the current output buffer and then discards that buffer.
If more output buffers remain on the stack, UCE switches to the next one.
:example
print("ob_get_close example\n");
ob_start
ob_get
ob_close