I thougth I already tried changing the 10 to 2, but I guess not.
Correct code would be:
- Code: Select all
$split_array = explode("\n", $quotes);
$count = (count($split_array);
$count = ($count < 10) ? $count : 10;
$rand_keys = array_rand($split_array, $count);













)
