-
Notifications
You must be signed in to change notification settings - Fork 0
startCode
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Initializes output buffering at the top of a PHP script. This begins capturing all generated HTML markup so it can be transformed and written to a static .html file by endCode().
📌 Must be called before any HTML markup, whitespace, or output is rendered by the PHP script to ensure the entire page is captured.
startCode(): bool
- Takes no arguments.
(bool)
: Returns true if output buffering was successfully started, or false on failure.
$file->startCode();
// PHP and HTML code goes here...
$file->endCode();
- No debug errors.