[ create a new paste ] login | about

Link: http://codepad.org/oUj8PwY2    [ raw code | output | fork ]

PHP, pasted on Jan 31:
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;
}


Output:
1
0=>this is key11=>this is key22=>this is tast one


Create a new paste based on this one


Comments: