Created
September 11, 2012 11:09
-
-
Save 4lb0/3697647 to your computer and use it in GitHub Desktop.
Devuelve un listado de mensajes al azar
This file contains hidden or 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
<?php | |
$mensajes = array('Notificacion 1', 'Hola Mudo', 'Puto el que lee', 'Ganaste','Sos el visitante numero 1000'); | |
shuffle($mensajes); | |
header("Content-Type: application/json; charset=utf-8"); | |
echo json_encode(array_slice($mensajes, mt_rand(0, count($mensajes)))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment