note 89583 deleted from function.readdir by danbrown

From: Date: Sun, 15 Mar 2009 14:52:27 +0000
Subject: note 89583 deleted from function.readdir by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151965@lists.php.net to get a copy of this message
Note Submitter: hanan dot ali dot shaikh at gmail dot com Reason: integrated ---- in the above post i forgot to subtract one from total records as array starts its index from 0 so the line in the above post should be this echo $dir_array[rand(0,count($dir_array)-1)]; instead of this echo $dir_array[rand(0,count($dir_array))];

« previous php.notes (#151965) next »