ultimatelibrarian
|
codepad
|
|
ultimatelibrarian
|
Saved pastes by ultimatelibrarian:
<?php
$books = array(
array(
"title" => "War of the Worlds",
"image" => "war_of_the_worlds.png",
|
view (139 lines, 81 lines of output) |
//I want to make teams for my mini frisbee tournament. 6 people have signed up,
//so it will be 3 vs. 3. They've provided their frisbee skill level and their
//general athletic abilities, both on a scale of 1-5.
//Make me my two teams, and make them as equal as you can! (if you want an easier
//assignment, just make the teams based on frisbee skill and ignore athletic
|
view (17 lines, 39 lines of output) |
<?php
$animals = array( 'dog', 'cat', 'fox', 'zebra', 'lemur', 'ox',
'giraffe', 'koala', 'aardvark', 'hedgehog' );
$count = count($animals);
|
view (40 lines, 63 lines of output) |