Answers to Chapter 19

  1. "Assert() flags a warning when the condition specified is true: true or false" False: quite the opposite is true.

  2. "Using @ to hide errors is good practice: true or false" False: only do it when you must, otherwise you're masking errors that are probably worth correcting.

  3. "Name three reasons why you might receive the error, "Call to undefined function"" There are various reasons why this error and others like it might pop up: You might have named using an extension that isn't supported, spelling the function name wrong, trying to access a private function, or forgotten to include the relevant file.

 

Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

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

Next chapter: The future of PHP >>

Previous chapter: Answers to Chapter 18

Jump to:

 

Home: Table of Contents

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