Zend
200-710
Q1:
What will the following code piece print?
echo strtr('Apples and bananas', 'ae', 'ea')
○
A
Applas end benenes○
B
Epplas end benenes○
C
Apples and bananas○
D
Applas end bananas
Zend
200-710
Q2:
Which parts of the text are matched in the following regular expression?
$text =
○
A
bang bong bung○
B
bang bonged bung○
C
big bang bong bung○
D
big bang bung
Zend
200-710
Q3:
The constructs for(), foreach(), and each() can all be used to iterate an object if the object...
○
A
implements ArrayAccess○
B
implements Iterator○
C
implements Iterator and ArrayAccess○
D
None of the above
Zend
200-710
Q4:
Given the following array:
$a = array(28, 15, 77, 43);
Which function will remove the value 28 from $a?
○
A
array_shift()○
B
array_pop()○
C
array_pull()○
D
array_unshift()
Zend
200-710
Q5:
What will be the output of the following code?
$a = array(0, 1, 2 => array(3, 4));
$a[3] = array(4, 5);
echo count($a, 1);
○
A
4○
B
5○
C
8○
D
None of the above