Created
September 13, 2011 18:31
-
-
Save fabioluciano/1214608 to your computer and use it in GitHub Desktop.
teste
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
<?php | |
$nomes = array(1 =>'Cássio', 'Weslley', 'Fábio'); | |
$tamanho_do_array = sizeof($nomes); | |
for($contador = 0; $contador <= $tamanho_do_array; $contador++) { | |
print $nomes[$contador] . PHP_EOL; | |
} | |
print '-------------------------------' . PHP_EOL; | |
while($tamanho_do_array) { | |
print $nomes[$tamanho_do_array] . PHP_EOL; | |
$tamanho_do_array--; | |
} | |
print '-------------------------------' . PHP_EOL; | |
foreach($nomes as $nome) { | |
print $nome . PHP_EOL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment