Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="es">
- <head>
- <meta charset="utf-8">
- <title>Salir de HTML</title>
- </head>
- <body>
- <h1>Movimiento Naranja</h1>
- <?php
- /**
- * La funcion rand de php devuelve un numero aleatorio entre dos valores, minimo y maximo
- */
- $numero = rand(0,1);
- ?>
- <?php if ($numero % 2 == 0) { ?>
- <p>El futuro está en tus manos</p>
- <?php } else { ?>
- <p>Movimiento ciudadano</p>
- <?php } ?>
- <hr>
- <?php
- $numero2 = rand(0,1);
- ?>
- <?php if ($numero2) : ?>
- <p>Somos niños libres</p>
- <?php else: ?>
- <p>Somos libres como el viento</p>
- <?php endif ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement