File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ function array_first(array $array): mixed {
14
14
}
15
15
16
16
/**
17
- * Returns the first value of a given array.
17
+ * Returns the last value of a given array.
18
18
*
19
- * @param array $array The array to get the first value of.
20
- * @return mixed First value of the array, or null if the array is
19
+ * @param array $array The array to get the last value of.
20
+ * @return mixed Last value of the array, or null if the array is
21
21
* empty. Note that null itself can also be a valid array value.
22
22
*/
23
23
function array_last (array $ array ): mixed {
@@ -37,10 +37,10 @@ function array_first(array $array) {
37
37
}
38
38
39
39
/**
40
- * Returns the first value of a given array.
40
+ * Returns the last value of a given array.
41
41
*
42
- * @param array $array The array to get the first value of.
43
- * @return mixed First value of the array, or null if the array is
42
+ * @param array $array The array to get the last value of.
43
+ * @return mixed Last value of the array, or null if the array is
44
44
* empty. Note that null itself can also be a valid array value.
45
45
*/
46
46
function array_last (array $ array ) {
You can’t perform that action at this time.
0 commit comments