Question:What will the $array array contain at the end of the execution of the following script?
<?php
$array = array ('1', '1');
foreach ($array as $k => $v) {
  $v = 2;
}
?>
 

A array ('2', '2') 

B array ('1', '1') 

C array (2, 2) 

D array (Null, Null) 

E array (1, 1) 

+ Answer
+ Explanation
+ Report
Total Preview: 1020

Copyright © 2024. Powered by Intellect Software Ltd