note 63093 added to function.array-rand
| From: | emailfire at gmail dot com | Date: | Mon, 13 Mar 2006 09:32:34 +0000 |
| Subject: | note 63093 added to function.array-rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105704@lists.php.net to get a copy of this message | ||
<?php
if (!function_exists('array_rand')) {
function array_rand($array) {
srand((double) microtime() * 1000000);
return rand(0, count($array)-1);
}
}
?>
----
Server IP: 85.116.0.130
Probable Submitter: 212.219.92.98 (proxied: 1.0 ISA)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-rand.php
Edit -- http://master.php.net/note/edit/63093
Del: integrated -- http://master.php.net/note/delete/63093/integrated
Del: useless -- http://master.php.net/note/delete/63093/useless
Del: bad code -- http://master.php.net/note/delete/63093/bad+code
Del: spam -- http://master.php.net/note/delete/63093/spam
Del: non-english -- http://master.php.net/note/delete/63093/non-english
Del: in docs -- http://master.php.net/note/delete/63093/in+docs
Del: other reasons-- http://master.php.net/note/delete/63093
Reject -- http://master.php.net/note/reject/63093
Search -- http://master.php.net/manage/user-notes.php