Draft v1
This commit is contained in:
11
LE/deprecated.php
Normal file
11
LE/deprecated.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (! function_exists("array_key_last")) {
|
||||
function array_key_last($array) {
|
||||
if (!is_array($array) || empty($array)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return array_keys($array)[count($array)-1];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user