I have this code but does not work.
$arr1 = array('test1', 'test2', 'test3');
$arr2 = array(1, 2, 3);
foreach ($arr1 as $x) {
$m = array_shift($arr2);
//at this point, $arr2 remains unchanged, why?
continue;
}
$arr2 does not seem to change within and in between iterations. Any insights will be highly appreciated. Thanks!
$arr2is unchanged? Please post code that indicates this definitively.