Question:Which key will not be displayed from the following code block?

<?php

$array = array('a' => 'John',
'b' => 'Coggeshall',
'c' => array('d' => 'John',
'e' => 'Smith'));

function display($item, $key) {
print "$key => $item\n";
}

array_walk_recursive($array, "display");

?>
 

A d 

B c 

C b 

D a 

E They all will be displayed 

+ Answer
+ Report
Total Preview: 691

Copyright © 2024. Powered by Intellect Software Ltd