Which of the following statements about Reflection are correct?
Which of the following statements about Reflection are correct? (Choose 2)
Which string will be returned by the following function call?
Which string will be returned by the following function call?
<code>
$test = ‘/etc/conf.d/wireless’;
substr($test, strrpos($test, ‘/’));
</code>
what statement is correct?
Given the following two functions, what statement is correct?
<code>
function dynamicNew($name) {
return new $name;
}
function reflectionNew($name) {
$r = new ReflectionClass($name);
return $r->newInstanceArgs();
}
</code>
What function allows resizing of PHP’s file write buffer?
What function allows resizing of PHP’s file write buffer?
How many elements does the array $matches from the following code contain?
How many elements does the array $matches from the following code contain?
<code>
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 ?>
</code>
Which of the following did not result in an output error in PHP 4 but does in PHP 5?
Which of the following did not result in an output error in PHP 4 but does in PHP 5?
what super-global will contain the command line arguments specified?
When PHP is running on a command line, what super-global will contain the command line
arguments specified?
Which is the most secure approach for handling dynamic data in SQL queries?
Which is the most secure approach for handling dynamic data in SQL queries?
Which of the following is NOT a valid function declaration?
Which of the following is NOT a valid function declaration?
Can a private static member be accessed from a public static method of the same class?
Can a private static member be accessed from a public static method of the same class?