$_POST= Array ( [0] => aaa@gmail.com [1] => bbb [2] => ccc [3] => ddd [4] => eee [5] => fff [6] => ggg [7] => hhh [8] => iii [9] => jjj [10] => 31 [11] => k ) foreach($_POST as $key => $val){ for ($key = 0; $key <= 9;$key++){ $_POST2[$val] = htmlentities($_POST[$val]); […]
Array ( [0] => Array ( [name] => A [id] => 1 [phone] => 416-23-55 [Base] => Array ( [city] => toronto ) [EBase] => Array ( [city] => North York ) [Qty] => 1 ) ( [1] => Array ( [name] => A [id] => 1 [phone] => 416-53-66 [Base] => Array ( [city] […]