4.25 ExercisesThis is NOT the latest copy of this book; click here for the latest version.
-
To delete a variable, what function do you use:
-
a) delete()
-
b) unset()
-
c) deset()
-
d) remove()
-
To uppercase the first letter in a string, what function do you use:
-
a) str_to_upper()
-
b) str_to_upper_first()
-
c) uc_first()
-
d) ucfirst()
-
What does the dl() function do, and what is the major disadvantage to using it?
-
Which of the following statements are true about recursive functions:
-
a) They call themselves
-
b) They need to be inside loops
-
c) They need to be registered with PHP
-
d) They must return a value
-
Regular expressions should be used whenever possible : true or false?
-
You always need to use addslashes() on variables before inserting them into a database: true or false?
-
Using register_shutdown_function(), you can register as many shutdown functions as you want: true or false?
|
Want to see this stuff in print? PHP in a Nutshell takes the core topics covered here, adds in thousands of edits from the editorial team and myself, and combines them to make an unbeatable reference for PHP programmers at all levels.
My latest book has hundreds more tips on how to use PHP, Apache, and MySQL, plus Perl, Python, shell scripts, performance tuning, and more!
|