File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 22
33All Notable changes to ` array-functions ` will be documented in this file
44
5+ ## 1.4.0 - 2015-06-29
6+
7+ ### Added
8+ - array_rand_value now can return multiple values (like array_rand)
9+
510## 1.3.0 - 2015-06-24
611
712### Added
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ The following functions are provided in the `Spatie`-namespace:
2929 * Get a random value from an array.
3030 *
3131 * @param array $array
32- *
32+ * @param int $numReq The amount of values to return
3333 * @return mixed
3434 */
35- function array_rand_value(array $array)
35+ function array_rand_value(array $array, $numReq = 1 )
3636```
3737
3838### array_rand_weighted
Original file line number Diff line number Diff line change 66 * Get a random value from an array.
77 *
88 * @param array $array
9- * @param int $numReq
9+ * @param int $numReq The amount of values to return
1010 *
1111 * @return mixed
1212 */
You can’t perform that action at this time.
0 commit comments