PHP - Zufallsgenerator (Lottozahlen)
<?php
// Zufallsgenerator (Lottozahlen)
$zahlen =[];
while (count($zahlen) < 6) {
$temp = mt_rand(1, 49);
if (!in_array($temp, $zahlen)) {
$zahlen[] = $temp;
}
}
echo '<p>' . implode(", ", $zahlen) . '</p>';
?>
24, 27, 33, 18, 32, 48
Eine zufällige Auswahl von Codeschnipseln
aus den Bereichen HTML, CSS,
PHP, JavaScript und MySQL.
<map> Verweis-sensitive Grafik
CSS - Lightbox
PHP - Zeichenketten
JavaScript - Fortschrittsanzeige mit JavaScript verändern
MySQL - Datum (DATETIME) in ein deutsches Datumsformat umwandeln