Zend-Technologies Zend PHP 5 Certification - 200-500 FREE EXAM DUMPS QUESTIONS & ANSWERS
When a browser requests an image identified by an img tag, it never sends a Cookie header.
Correct Answer: A
Vote an answer
What piece of code would you use to obtain an array of response headers for a given URL, indexed by their respective names?
Correct Answer: B
Vote an answer
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 ?>
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 ?>
Correct Answer: B
Vote an answer
How can precisely one byte be read from a file, pointed by $fp? (Choose 2)
Correct Answer: B,D
Vote an answer
The following code piece should print "PHP is cool", but unexpectedly, it just prints "cool".
How would you correct it?
echo str_replace('PHP is a pain.', 'a pain', 'cool');
How would you correct it?
echo str_replace('PHP is a pain.', 'a pain', 'cool');
Correct Answer: C
Vote an answer
The function mysqli_affected_rows() can be used to perform which of the following actions?
(Choose 2)
(Choose 2)
Correct Answer: A,D
Vote an answer
How to read a single line, no matter how long from an file opened in the example below?
$fp = fopen("my_file.txt", "w");
$fp = fopen("my_file.txt", "w");
Correct Answer: D
Vote an answer
What object method specifies post-serialization behavior for an object?
Correct Answer: D
Vote an answer
What is the return value of the following code: substr_compare("foobar", "bar", 3);
Correct Answer: D
Vote an answer
Given the default PHP configuration, how can all of the parameters provided via GET be accessed in a form of a string?
Correct Answer: C
Vote an answer
What will be the result of the following operation?
array_combine(array("A","B","C"), array(1,2,3));
array_combine(array("A","B","C"), array(1,2,3));
Correct Answer: B
Vote an answer
Which of the following techniques ensures that a value submitted in a form can only be yes or no?
Correct Answer: C
Vote an answer
What is the name of the method that can be used to provide read access to virtual properties in a class?
Correct Answer: E
Vote an answer