Hacking with PHP
To delete a variable, what function do you use:
To uppercase the first letter in a string, what function do you use:
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?
Next chapter: Further reading >>
Previous chapter: Summary
Jump to: Functions Functions overview How to read function prototypes Working with variables Controlling script execution Working with Date and Time Reading the current time Converting from a string Converting to a string Converting from components Mathematics Rounding Randomisation Trigonometrical conversion Other mathematical conversion functions Base conversion Mathematical constants Playing with strings Reading from part of a string Replacing parts of a string Converting to and from ASCII Measuring strings Finding a string within a string Returning the first occurrence of a string Trimming whitespace Wrapping your lines Changing string case Making a secure data hash Alternative data hashing Automatically escaping strings Pretty-printing numbers Removing HTML from a string Comparing strings Padding out a string Complex string printing Parsing a string into variables Regular expressions Basic regexes with preg_match() and preg_match_all() Novice regexes Advanced regexes Guru regexes Regular expression replacements Regular expression syntax examples A regular expression assistant Checking whether a function is available Extension functions Pausing script execution Executing external programs Connection-related functions Altering the execution environment User functions Return values Parameters Passing by reference Returning by reference Default parameters Variable parameter counts Variable scope in functions Overriding scope with the GLOBALS array Recursive functions Variable functions Callback functions The declare() function and ticks Handling non-English characters Undocumented functions Summary Exercises Further reading Next chapter
Home: Table of Contents
Copyright ©2015 Paul Hudson. Follow me: @twostraws.