Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created September 22, 2017 16:22
Show Gist options
  • Save NandoKstroNet/93475963674bac6bf04bdc0c66e62af0 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/93475963674bac6bf04bdc0c66e62af0 to your computer and use it in GitHub Desktop.
Código criado na postagem sobre laços no PHP da codeexpertslearning.com.br.
<?php
$fruits = ['laranja', 'maçã', 'banana', 'pera'];
foreach($fruits as $key => $fruit) {
print $key . ' - ' . $fruit . PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment