[Solved] Delete first array php
[ad_1] The only reason why you would get such an output is because you print_r inside the loop. I believe you have something like: $aa = [47, 51]; foreach($aa as $a){ $b[] = $a; print_r($b); } /*Output: Array ( [0] => 47 ) Array ( [0] => 47 [1] => 51 )*/ But instead you … Read more