-
-
Save Nixtren/e6e9ffbaba1702477954485e8ab4b1b1 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 | |
$rand = []; | |
for ($i = 0; $i <= 5; $i++) | |
{ | |
//$rand[$i] = random_int(0,random_int(2,3)); | |
$rand[$i] = random_int(0, 3); // Requires PHP 7 | |
} | |
$string = "Belgium VS Ireland: {$rand[0]} : {$rand[1]} | |
Iceland VS Hungary: {$rand[2]} : {$rand[3]} | |
Portugal VS Austria: {$rand[4]} : {$rand[5]}"; | |
echo $string; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment