Skip to content

Instantly share code, notes, and snippets.

@codenamegary
Forked from s3gfau1t/gist:7012997
Last active December 25, 2015 17:29
Show Gist options
  • Save codenamegary/7013108 to your computer and use it in GitHub Desktop.
Save codenamegary/7013108 to your computer and use it in GitHub Desktop.
<?php
$velocities = array("turtle", "donkey", "rabbit");
$players = array(
'1' => array(
'name' => 'Foo',
'velocity' => $velocities[rand(0,2)]),
'2' => array(
'name' => 'Bar',
'velocity' => $velocities[rand(0,2)]),
);
echo "(player 1) {$players['1']['name']} :: will go as fast as a {$players['1']['velocity']}\r\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment