Problem bereits gelöst, hier das update. Danke für die Tipps
PHP
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zufallsgenerator</title>
</head>
<body style="text-align: center;">
<style>body {
background-image: url("/Slotmachine/hinter2.jpg");
}
</style>
<h1 style="color:#dd0000;text-shadow:#dd0000 1px 1px 80px;text-align:center; font-size:70px;><span style="color:#000000;">Slotmachine</span></h1>
<h5 style="font-size: 50px;"> <br /> <br /> <br />
<?php
$kette = array(
"❤ ",
"☠ ", "☁ ",
"☉ ", "☎ ",
"☑ ", "☓ ",
"☗ ", "☢ ",
"☪ ", "☯ ",
"☰ ", "☻ ",
"♉ ", "♛ ",
"♦ ", "♬ "
);
$code = "";
$countkette = count($kette);
for ($i = 0; $i < 5; $i++) {
$zufall = rand(0, ($countkette - 1));
$code .= $kette[$zufall];
}
echo $code
?>
</h5>
</body>
</html>
Alles anzeigen