Hacking with PHP has been updated for PHP 7 - click here! >>

Answers to Chapter 13

  1. "What is the first parameter to ob_get_contents()" The answer is "d", as it accepts no parameters.

  2. "The overhead of using output buffering means that you should only use it when absolutely necessary: true or false" False. In fact, output buffering is often recommended to be turned on by default.

  3. "When using output buffering, you can send cookies after HTML: true or false" True.


If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Answers to Chapter 14 >>

Previous chapter: Answers to Chapter 12

Jump to:


Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.