Skip to content

Commit 1339551

Browse files
Docs
1 parent 08c34e2 commit 1339551

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All 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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/array_functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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
*/

0 commit comments

Comments
 (0)