One of the first things in PHP that really stumped me was the difference between code that created output and code that didn’t. I knew, vaguely, that thing
Good basic understanding of using output buffering in WordPress.
Source: Understanding PHP Output Buffering, and Why It’s Great for Shortcodes | WPShout