Activity Stream
48,167 MEMBERS
61818 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Member

    Default is srand() necessary for random array?

    PHP Code: 
    srand();
    $files = array("../test.php""../test2.php");
    $rand array_rand($files);
    include(
    $files[$rand]); 
    Hey guys, what's the diff between adding srand(); and not adding it?
    kohkindachi Reviewed by kohkindachi on . is srand() necessary for random array? srand(); $files = array("../test.php", "../test2.php"); $rand = array_rand($files); include($files); Hey guys, what's the diff between adding srand(); and not adding it? Rating: 5
    None

  2.   Sponsored Links

  3.     
    #2
    Member
    can't believe no one from KWWH is willing to help
    None

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. array problem
    By mastercho in forum vBulletin
    Replies: 3
    Last Post: 30th Mar 2012, 04:50 AM
  2. Each line like different array element
    By QuiGloriam in forum Web Development Area
    Replies: 2
    Last Post: 30th Dec 2011, 04:05 PM
  3. Replies: 0
    Last Post: 15th Sep 2011, 12:50 PM
  4. From random to more random
    By dannym23 in forum General Discussion
    Replies: 4
    Last Post: 13th Aug 2011, 07:35 PM
  5. Array Help
    By Flesh_Into_Gear in forum Web Development Area
    Replies: 0
    Last Post: 15th Mar 2011, 04:43 PM

Tags for this Thread

BE SOCIAL