I want to scramble an array in PHP

Posted by BRUL on Stack Overflow See other posts from Stack Overflow or by BRUL
Published on 2010-05-14T19:52:25Z Indexed on 2010/05/14 19:54 UTC
Read the original article Hit count: 322

I want PHP to randomly create a multi-dimensional array by picking a vast amount of items out of predefined lists for n times, but never with 2 times the same.

Let me put that to human words in a real-life example: i want to write a list of vegetables and meat and i want php to make a menu for me, with every day something else then yesterday.

I tried and all i got was the scrambling but there were always doubles :s

© Stack Overflow or respective owner

Related posts about php

Related posts about multidimensional-array