note 89583 added to function.readdir
| From: | hanan dot ali dot shaikh at gmail dot com | Date: | Sun, 15 Mar 2009 08:00:07 +0000 |
| Subject: | note 89583 added to function.readdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-151957@lists.php.net to get a copy of this message | ||
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))];
----
Server IP: 69.147.83.197
Probable Submitter: 119.153.37.79
----
Manual Page -- http://www.php.net/manual/en/function.readdir.php
Edit -- https://master.php.net/note/edit/89583
Del: integrated -- https://master.php.net/note/delete/89583/integrated
Del: useless -- https://master.php.net/note/delete/89583/useless
Del: bad code -- https://master.php.net/note/delete/89583/bad+code
Del: spam -- https://master.php.net/note/delete/89583/spam
Del: non-english -- https://master.php.net/note/delete/89583/non-english
Del: in docs -- https://master.php.net/note/delete/89583/in+docs
Del: other reasons-- https://master.php.net/note/delete/89583
Reject -- https://master.php.net/note/reject/89583
Search -- https://master.php.net/manage/user-notes.php