Skip to content

Instantly share code, notes, and snippets.

@TiMESPLiNTER
Forked from danielmitd/damn-vote
Last active September 8, 2015 08:06
Show Gist options
  • Select an option

  • Save TiMESPLiNTER/e6ca69ced45e613889c1 to your computer and use it in GitHub Desktop.

Select an option

Save TiMESPLiNTER/e6ca69ced45e613889c1 to your computer and use it in GitHub Desktop.
#!/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