Created
October 30, 2012 12:14
-
-
Save Bolinha1/3979850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arr = array(1,2,3); | |
foreach($arr as $key=>$value) | |
{ | |
echo 'Esse é o indice ' .$key. 'esse é o valor do indice ' .$value; | |
} | |
$arr = array('n1' =>1,'n2'=> 2,'n3'=>3); | |
foreach($arr as $key=>$value) | |
{ | |
echo 'Esse é o indice ' .$key. 'esse é o valor do indice ' .$value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment