Results 1 to 2 of 2
Threaded View
-
15th Oct 2010, 01:12 AM #1OPMember
is srand() necessary for random array?
PHP Code:srand();
$files = array("../test.php", "../test2.php");
$rand = array_rand($files);
include($files[$rand]);
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: 5None
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
array problem
By mastercho in forum vBulletinReplies: 3Last Post: 30th Mar 2012, 04:50 AM -
Each line like different array element
By QuiGloriam in forum Web Development AreaReplies: 2Last Post: 30th Dec 2011, 04:05 PM -
[VPS] Zeropid.com - Windows VPS with RDP, UK, USA, Raid10 Array, Liberty Reserve accepted
By Wajdan in forum ArchiveReplies: 0Last Post: 15th Sep 2011, 12:50 PM -
From random to more random
By dannym23 in forum General DiscussionReplies: 4Last Post: 13th Aug 2011, 07:35 PM -
Array Help
By Flesh_Into_Gear in forum Web Development AreaReplies: 0Last Post: 15th Mar 2011, 04:43 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...