<?php $arr1= []; $arr2 = []; $arr1[] = "Hello"; $arr1[] = "This"; print_r($arr1); $tester = ["Hello", "This"]; foreach ($tester as $key) { $arr2[] = $key; } print_r($arr2);
You have javascript disabled. You will not be able to edit any code.