Randomly shuffle the contents of an array

Discussion in 'PHP' started by weknowtheworld, Apr 14, 2007.

  1. #1
    Hi,

    Please help me as to how can I randomly shuffle the contents of an array?

    Thanks... :)
     
    weknowtheworld, Apr 14, 2007 IP
  2. Weizheng

    Weizheng Peon

    Messages:
    93
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There's a PHP array function called shuffle -

    bool shuffle ( array &array )
     
    Weizheng, Apr 15, 2007 IP