Skip to content

Commit 7272408

Browse files
authored
Merge pull request #19 from 15g-lucas/array-extension
Array extension
2 parents 87ac772 + 2f6ae5f commit 7272408

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/2.extensions/array.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ $faker->randomElement(['first', 'second', 'third', 'fourth']); // second
1414
```php
1515
$faker->randomKey([['firstname' => 'John'], ['lastname' => 'Doe'], ['nickname' => 'Johnny'], ['login' => 'j.doe']]); // nickname
1616
```
17+
18+
## Random Key Number
19+
20+
```php
21+
$faker->randomKeyNumber([['firstname' => 'John'], ['lastname' => 'Doe'], ['nickname' => 'Johnny'], ['login' => 'j.doe']]); // 2
22+
```

0 commit comments

Comments
 (0)