1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php $post = array(); $post['array1'] = array( 'info1' => 'test 1', 'info2' => 'test 2', 'info3' => 'test 3' ); $post['info4'] = '#'; foreach ($post['array1'] as $key => $val) { echo "$key => $val\n"; } ?>
1 2 3
info1 => test 1 info2 => test 2 info3 => test 3