Memory Refresh



Basics,  
Reference

1) What will be the output? <?php $a = 1; $b = &$a; $a = 2; echo $b;




2) What is the value of the array? <?php $arr = array(1,2,3,4); foreach ($arr as $val) { $val *= 2; } foreach ($arr as &$val) { $val *= 2; }





0 / 0