Examveda
Examveda

What elements will the following script output?
<?php
$array = array (true => 'a', 1 => 'b');
var_dump ($array);
?>

A. 1 => 'b'

B. True => 'a', 1 => 'b'

C. 0 => 'a', 1 => 'b'

D. None

E. It will output NULL

Answer: Option E


This Question Belongs to PHP >> Arrays

Join The Discussion

Related Questions on Arrays