Last active
November 3, 2016 12:36
-
-
Save h3rj4n/cdca994c9b9e6d4d1d5e792616580ed8 to your computer and use it in GitHub Desktop.
This file contains 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 | |
// Include the autoload that includes our packages. | |
require_once 'vender/autoload.php'; | |
// Test the debugging tool! | |
r('hallow testing'); | |
// Keep track of count. | |
$i = 0; | |
// Er zijn 100 takken nodig om de boom op te bouwen. | |
$var = 100; | |
// Array containing all the branches. | |
$banches = []; | |
// Blijf uitvoeren tot het aantal takken berijkt is | |
while ($i > $var) { | |
// Add a branch to the array. | |
$banches[] = array( | |
'number' => $i, | |
'color' => get_random_color(); | |
); | |
// Increase the count by one each time the loop is executed. | |
$i++; | |
} | |
// For debug purposes: dump the tree! | |
print_r($branches); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment