Exercises
-
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?


