Skip to content

Instantly share code, notes, and snippets.

@DragonBe
Last active March 21, 2016 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DragonBe/31edc0ac22544933e748 to your computer and use it in GitHub Desktop.
Save DragonBe/31edc0ac22544933e748 to your computer and use it in GitHub Desktop.
Little project for calling the PHP community and hear a nice quote from a respected community member
<?php
$community = array (
'http://blob.phpdev.nu/elephpone/michelangelo_vandam.mp3',
'http://blob.phpdev.nu/elephpone/tessa_mero.mp3',
'http://blob.phpdev.nu/elephpone/khayrattee_wasseem.mp3',
'http://blob.phpdev.nu/elephpone/cal_evans.mp3',
'http://blob.phpdev.nu/elephpone/thijs_feryn.mp3',
'http://blob.phpdev.nu/elephpone/gabriel_somoza.mp3',
'http://blob.phpdev.nu/elephpone/beth_tucker_long.mp3',
);
$index = rand(0, count($community) - 1);
if ($currentCall->network == "SMS") {
say('Sorry, SMS service not completed yet. Follow @DragonBe on Twitter.com for updates.');
} else {
say($community[$index]);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment