Question:What is the result of the following code snippet?

<?php

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

function something($array) {
extract($array);
return $c['e'];
}

print something($array);
?>
 

A Smith 

B A PHP Warning 

C  

D  

E Array 

+ Answer
+ Report
Total Preview: 787

Copyright © 2024. Powered by Intellect Software Ltd