2.10 ExercisesNOTE: This is NOT the latest copy of this book; click here for the latest version.
-
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) //
-
b) ##
-
c) /*
-
d) None of the above
-
PEAR is...
-
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...
-
Using switch/case rather than multiple if statements is...
-
a) Faster
-
b) Easier to read
-
c) Both a) and b)
-
d) None of the above
-
Escape sequences are the fastest way to exit your script: true or false?
|