Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
Which of the following is an invalid DOM save method?
What DOM method is used to load HTML files?
Which is the most secure approach for handling dynamic data in SQL queries?
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
Which string will be returned by the following function call?
$test = '/etc/conf.d/wireless';
substr($test, strrpos($test, '/'));
Which of the following is NOT possible using reflection?
Given the following two functions, what statement is correct?
function dynamicNew($name) {
return new $name;
}
function reflectionNew($name) {
$r = new ReflectionClass($name);
return $r->newInstanceArgs();
}
Which of the following statements about Reflection are correct? (Choose 2)
How many elements does the array $matches from the following code contain?
1 <?php
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 ?>