1 2 3 4 5 6 7 8 9 10
<?php $array = array( 'this is key1', 'this is key2', 'this is tast one', ); foreach($array AS $key => $val){ echo $key .'=>'. $val; }
1
0=>this is key11=>this is key22=>this is tast one