Skip to content

Instantly share code, notes, and snippets.

@abackstrom
Created December 5, 2013 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abackstrom/7798265 to your computer and use it in GitHub Desktop.
Save abackstrom/7798265 to your computer and use it in GitHub Desktop.

Before:

function the_thing() {
    echo "haha CODE";
}

After:

function the_thing() {
    ob_start();
    echo "haha CODE";
    return ob_end_clean();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment