@@ -40,10 +40,11 @@ This library features some common functions to reduce overall duplication and av
40
40
41
41
(we can't use ` array ` as class name because reasons)
42
42
43
- | method | description |
44
- | ----------------------------------| ----------------------------------------------------------------------------|
45
- | ` Arr::first(array $array):mixed ` | Returns the first element of an array, ` null ` if the given array is empty. |
46
- | ` Arr::last(array $array):mixed ` | Returns the last element of an array, ` null ` if the given array is empty. |
43
+ | method | description |
44
+ | -----------------------------------| ----------------------------------------------------------------------------|
45
+ | ` Arr::first(array $array):mixed ` | Returns the first element of an array, ` null ` if the given array is empty. |
46
+ | ` Arr::last(array $array):mixed ` | Returns the last element of an array, ` null ` if the given array is empty. |
47
+ | ` Arr::random(array $array):mixed ` | Returns a random element of an array, ` null ` if the given array is empty. |
47
48
48
49
49
50
### ` Crypto `
@@ -61,14 +62,14 @@ The `Crypto` class defines the following public constants:
61
62
62
63
pre-defined character maps for use with ` Crypto::randomString() ` as ` $keyspace ` :
63
64
64
- - ` NUMERIC ` : numbers 0-9
65
- - ` ASCII_LOWER ` : ASCII a-z
66
- - ` ASCII_UPPER ` : ASCII A-Z
65
+ - ` NUMERIC ` : numbers ` 0-9 `
66
+ - ` ASCII_LOWER ` : ASCII ` a-z `
67
+ - ` ASCII_UPPER ` : ASCII ` A-Z `
67
68
- ` ASCII_SYMBOL ` : ASCII printable symbols `` !"#$%&\'()*+,-./:;<=>?@[\]^_`{|}~ ``
68
- - ` HEXADECIMAL ` : numbers 0-9 + ASCII a-f
69
- - ` ASCII_ALPHANUM ` : numbers 0-9 + ASCII a-z + A-Z
70
- - ` ASCII_PRINTABLE ` : numbers 0-9 + ASCII a-z + A-Z + printable symbols
71
- - ` ASCII_COMMON_PW ` : ASCII printable minus a few troublemaker symbols ` !#$%&()*+,-./:;<=>?@[]~_| `
69
+ - ` HEXADECIMAL ` : numbers ` 0-9 ` + ASCII ` a-f `
70
+ - ` ASCII_ALPHANUM ` : numbers ` 0-9 ` + ASCII ` a-z ` + ` A-Z `
71
+ - ` ASCII_PRINTABLE ` : numbers ` 0-9 ` + ASCII ` a-z ` + ` A-Z ` + printable symbols
72
+ - ` ASCII_COMMON_PW ` : ASCII alphanum + most of ASCII printable symbols ` !#$%&()*+,-./:;<=>?@[]~_| ` (minus a few troublemakers)
72
73
73
74
output and input ` $format ` for the functions ` Crypto::encrypt() ` and ` Crypto::decrypt() ` , respectively:
74
75
0 commit comments