Last active
September 8, 2015 08:13
-
-
Save danielmitd/19afccbd0997c92ed63d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env php | |
| <?php | |
| $people = [ | |
| 'b2b' => [ | |
| 'Dominik', | |
| 'Thomas', | |
| 'Henrik', | |
| ], | |
| 'b2c' => [ | |
| 'Michel', | |
| 'Chrigi', | |
| 'GCC', | |
| 'Pascal', | |
| ], | |
| ]; | |
| foreach ($people as $team => $members) { | |
| echo $team . PHP_EOL . str_repeat('=', strlen($team)) . PHP_EOL; | |
| shuffle($members); | |
| $i = 0; | |
| foreach ($members as $name) { | |
| echo ++$i . '. ' . $name . PHP_EOL; | |
| } | |
| echo PHP_EOL; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
B2B-Mitglieder werden immer als erstes ausgegeben. Ist also nicht allzu zufällig.