En la versión pública del portfolio los ejercicios PHP se muestran como código y no se ejecutan. ⬅ Volver
<?php
$miBoleto = [];
while (count($miBoleto)<6) {
$numero = rand(1,49);
if (!in_array($numero, $miBoleto)) {
$miBoleto[] = $numero;
}
}
echo implode("-", $miBoleto)
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>