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 {
1414 }
1515
1616 /**
17- * Returns the first value of a given array.
17+ * Returns the last value of a given array.
1818 *
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
2121 * empty. Note that null itself can also be a valid array value.
2222 */
2323 function array_last (array $ array ): mixed {
@@ -37,10 +37,10 @@ function array_first(array $array) {
3737 }
3838
3939 /**
40- * Returns the first value of a given array.
40+ * Returns the last value of a given array.
4141 *
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
4444 * empty. Note that null itself can also be a valid array value.
4545 */
4646 function array_last (array $ array ) {
You can’t perform that action at this time.
0 commit comments