jeudi 1 janvier 2015

PHP Single line array shuffle is not working

Very simple but I was wondering why this is not working.


I'm trying shuffle an array and output the results (in a single line structure)


this is my code :



echo shuffle(array("A","B","C"))[0];


Small tweak needed here ;)





Aucun commentaire:

Enregistrer un commentaire