Created
March 25, 2020 13:28
-
-
Save chang180/a6d9481358013f88f6c9dd8e2b6682ff to your computer and use it in GitHub Desktop.
威力彩_php
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>威力彩_php</title> | |
</head> | |
<body> | |
<h2> | |
<?php | |
$roll=array_rand(range(1,38),6); | |
$special = array_rand(range(1,8)); | |
echo "A區的號碼為"; | |
foreach($roll as $value) echo ($value+1)." "; | |
echo "<br>"."<br>"."B區的號碼為".($special+1); | |
?> | |
</h2> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment