Please answer this simple SPAM challenge: three minus zero? (Example: nine)
If the array elements are unique, and are all integers or strings, here is a simple way to pick $n random *values* (not keys) from an array $array: <?php array_rand(array_flip($array), $n); ?>
<< Back to user notes page