Zend 200-500 - Zend PHP 5 Certification
An unbuffered query will: (Choose 2)
What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));
How many elements does the array $pieces contain after the following piece of code has been executed?
$pieces = explode("/", "///");
After executing a query on a database server, PHP offers several functions to read the resulting lines, such as mysqli_fetch_assoc, pg_fetch_row, oci_fetch,etc.). If such functions do not return any rows, it means: (Choose 2)
How can you determine if magic_quotes_gpc is enabled? (Choose 2)
When PHP is running on a command line, what super-global will contain the command line arguments specified?
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 ?>
What parsing methodology is utilized by the SimpleXML extension?
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();
}
After executing a SELECT query on a database server,