Which sentence describes the following regular expression match?
preg_match('/^\d*(?:\.[0-9]+)?$/', $test);
Consider the following code:
strspn($test, 'aeiou', 1);
The variable $test contains the string "You get certified".
What will the function call return?
An object can be counted with count() and sizeof() if it
What is the length of a string returned by: md5(rand(), TRUE);
What is the name of the PHP function used to automatically load non-yet defined classes?
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/'));
How can you determine if magic_quotes_gpc is enabled? (Choose 2)
How many elements does the array $matches from the following code contain?
1
2 $str = "The cat sat on the roof of their house.";
3
4 $matches = preg_split("/(the)/i", $str, -1,
PREG_SPLIT_DELIM_CAPTURE);
5 ?>
Which PHP function retrieves a list of HTTP headers that have been sent as part of the HTTP response or are ready to be sent?
What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?