Skip to content

Commit 167c4c0

Browse files
committed
chore: update MDDoc to 0.14
1 parent 82ee28b commit 167c4c0

2 files changed

Lines changed: 88 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,90 @@ Install the latest version with:
1919
composer require 'quorum/array-functions'
2020
```
2121

22-
## Array Functions
22+
## Array Functions
23+
24+
### Function: \array_flatten
25+
26+
```php
27+
function array_flatten(array $array, $allow_duplicates = \false)
28+
```
29+
30+
##### Parameters
31+
32+
- ***array*** `$array` - The Array to be Flattened
33+
- ***bool*** `$allow_duplicates` - Should the array allow duplicates
34+
35+
##### Return Value
36+
37+
- ***array*** - The resulting array or NULL on failure
38+
39+
Given an array, find all the values recursively.
40+
41+
### Function: \array_blend
42+
43+
```php
44+
function array_blend(array $arrays, array $keys = \null)
45+
```
46+
47+
##### Parameters
48+
49+
- ***array*** `$arrays` - An array of arrays.
50+
- ***array*** | ***null*** `$keys` - The merged array.
51+
52+
##### Return Value
53+
54+
- ***array*** - The resulting blended array
55+
56+
Given an array of arrays, merges the array's children together.
57+
58+
### Function: \array_key_array
59+
60+
```php
61+
function array_key_array(array $arrays, $key)
62+
```
63+
64+
##### Parameters
65+
66+
- ***array*** `$arrays` - An array of similarly keyed arrays
67+
- ***int*** | ***string*** `$key` - The desired key
68+
69+
##### Return Value
70+
71+
- ***array*** - The flattened array
72+
73+
Given an array of similarly keyed arrays, returns an array of only the values of the key.
74+
75+
### Function: \array_keys_array
76+
77+
```php
78+
function array_keys_array(array $arrays, $keys)
79+
```
80+
81+
##### Parameters
82+
83+
- ***array*** `$arrays` - An array of similarly keyed arrays
84+
- ***array*** | ***int*** | ***string*** `$keys` - The key or array of keys to return
85+
86+
##### Return Value
87+
88+
- ***array*** - The array of arrays with just the selected keys
89+
90+
Given an array of similarly keyed arrays, returns an array of only the selected keys.
91+
92+
### Function: \array_key_refill
93+
94+
```php
95+
function array_key_refill(array $array, array $keys, $fill = array())
96+
```
97+
98+
##### Parameters
99+
100+
- ***array*** `$array` - A Keyed array
101+
- ***array*** `$keys` - The keys that must exist
102+
- ***mixed*** `$fill` - The desired value to fill with
103+
104+
##### Return Value
105+
106+
- ***array***
107+
108+
Given a keyed array, fills any missing values.

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php" : ">=7.4.0"
2525
},
2626
"require-dev": {
27-
"donatj/mddoc": "^0.13.0",
27+
"donatj/mddoc": "^0.14.0",
2828
"phpunit/phpunit": "~8|~9|~11"
2929
},
3030
"autoload" : {

0 commit comments

Comments
 (0)