Exercises

  1. The process control functions are Unix-only: true or false?

  2. Using pcntl_fork() is a good way to do multi-threading: true or false?

  3. The pcntl_exec() function is functionally the same as the exec() function: true or false?

  4. Which SPL interface lets you use your object as an array?

    • a) ArrayObject

    • b) ArrayAccess

    • c) ArrayClass

    • d) ArrayIterator

  5. What is the filename that needs to be downloaded to use browser detection?

  6. What does bcpowmod() do?

    • a) Calculates the power of a modulo division

    • b) Calculates the lowest-common denominator of a fraction

    • c) Calculates the median average of a multiplication

    • d) Calculates the remainder of a division on a multiplication

  7. Templates make the job of separating design from layout easier: true or false?

 

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: Further reading >>

Previous chapter: Summary

Jump to:

 

Home: Table of Contents

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