Which of these statements is true about PHP 5?
a) Require and include are the same
b) Require includes files whether or not the line is executed
c) Require exits the script if it cannot find the file to include
d) None of the above
Which of the following is not a valid way to start a PHP comment?
a) A tasty fruit
b) The PHP Extended Assignment Repository
c) The PHP Extension and Application Repository
Heredoc syntax is...
a) A way to define strings without worrying about quotation marks
b) A automatic documentation tool for PHP
c) The opposite of theredoc syntax
Mixed-mode processing is...
a) The act of outputting HTML and pictures at the same time
b) The act of entering and exiting PHP processing mode several times
c) Impossible in PHP
Using switch/case rather than multiple if statements is...
b) Easier to read
c) Both a) and b)
Escape sequences are the fastest way to exit your script: true or false?
Next chapter: Further reading >>
Previous chapter: Summary
Jump to: Introducing PHP History Background Early versions of PHP Current release Upgrading from PHP 3 Upgrading from PHP 4 The creators of PHP The Zend Relationship Advantages of PHP The HTML relationship Interpreting vs. Compiling Output Control Performance Competing Languages When to use PHP When not to use PHP Selling PHP to your boss Extending PHP PEAR Running PHP scripts How PHP is written Whitespace Escape sequences Heredoc Brief introduction to variable types Code blocks Opening and closing code islands Comments Conditional statements Case switching Loops Infinite loops Special loop keywords Loops within loops Mixed-mode processing Including other files Abnormal script termination Editing your PHP configuration Summary Exercises Further reading Next chapter
Home: Table of Contents
Follow us on Identi.ca or Twitter
© Future Publishing Limited, Beauford Court, 30 Monmouth Street, Bath BA1 2BW. All rights reserved. England and Wales company registration number 2008885.