Answers to Chapter 11

  1. "Which format will yield the best compression for a photographic image" The answer is "a", JPEG.

  2. "What is the difference between resizing and resampling" Resampling smooths the edges of images after resizing, whereas plain resizing does not.

  3. "When using pdf_findfont(), which type of encoding is it best to specify as the third parameter" The answer is "e", host, which lets PHP pick the appropriate encoding for the platform.

 

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: Answers to Chapter 12 >>

Previous chapter: Answers to Chapter 10

Jump to:

 

Home: Table of Contents

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