Created
September 21, 2016 07:13
-
-
Save coreymcmahon/7cb0ab157db6299968f088415347b05c to your computer and use it in GitHub Desktop.
Script to randomly select an attendee from the Laravel Bangkok meet up event.
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
<?php | |
$attendees = [ | |
// insert attendee list here | |
]; | |
$winnerIndex = random_int(0, count($attendees)-1); | |
$winner = $attendees[$winnerIndex]; | |
echo "\n\n"; | |
echo "The winner is...\n"; | |
echo "\t\t{$winner}"; | |
echo "\n\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment