mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
PHP 7.3.0 introduced two new functions: `array_key_first()` and `array_key_last()`. These two functions return the first and last key of each array respectively, without affecting the internal state of the array. The polyfills make these two functions available for use in Core on PHP versions less than 7.3.0. Ref: * PHP RFC https://wiki.php.net/rfc/array_key_first_last * PHP manual `array_key_first()` https://www.php.net/manual/en/function.array-key-first.php * PHP manual `array_key_last()` https://www.php.net/manual/en/function.array-key-last.php Props desrosj, pbearne, costdev, hellofromTonya, ayeshrajans, manzoorwanijk, audrasjb, sergeybiryukov. Fixes #45055. git-svn-id: https://develop.svn.wordpress.org/trunk@52038 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| e2e | ||
| gutenberg | ||
| phpunit | ||
| qunit | ||
| visual-regression | ||