PHP 7.3 presents two new array functions to work - PHP training in chandigarh

Page 1

New Outer Array Functions Coming to PHP 7.3 PHP 7.3 presents two new array functions to work with an array's "outer" key. The RFC proposition included four new functions for both keys and values, however just the array key functions were accepted: array_key_first () (Approved) array_key_last () (Approved) array_value_first () (declined) array_value_last () (declined) Array value functions were declined but new functions will be accessible to obtain key of an array.

New Accepted Array Key Functions First, let’s look at the array_key* functions. These functions allow you to get the first and last key respectively.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.