Skip to content

Instantly share code, notes, and snippets.

@Jul10l1r4
Last active December 11, 2017 23:28
Show Gist options
  • Save Jul10l1r4/2a677f66941f9535256251a4029a793a to your computer and use it in GitHub Desktop.
Save Jul10l1r4/2a677f66941f9535256251a4029a793a to your computer and use it in GitHub Desktop.
foreach created by Jul10l1r4 - https://repl.it/@Jul10l1r4/foreach
<?php
$users = [
[ 'idade' => 29, 'nome' => 'Marcos lucim' ],
[ 'idade' => 20, 'nome' => 'Marcos ' ],
[ 'idade' => 50, 'nome' => 'Marcelo dougras' ],
];
foreach ( $users as $ValorQueVaiCorrer ){
print_r($ValorQueVaiCorrer);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment