PrepAway - Latest Free Exam Questions & Answers

What will be the value of $b after running the following code?

What will be the value of $b after running the following code?
<code>
$a = array(‘c’, ‘b’, ‘a’);
$b = (array)$a;
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
TRUE

B.
array(‘c’, ‘b’, ‘a’)

C.
array(array(‘c’, ‘b’, ‘a’))

D.
None of the above

One Comment on “What will be the value of $b after running the following code?


Leave a Reply

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