PrepAway - Latest Free Exam Questions & Answers

what will be the value of $a?

Given the following code, what will be the value of $a?
<code>
$a = array(‘a’, ‘b’);
array_push($a, array(1, 2));
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
array(‘a’, ‘b’, 1, 2)

B.
array(1, 2, ‘a’, ‘b’)

C.
array(array(1, 2), ‘a’, ‘b’)

D.
None of the above


Leave a Reply

Your email address will not be published. Required fields are marked *