note 128800 added to function.array-key-first

From: Date: Mon, 14 Aug 2023 13:36:31 +0000
Subject: note 128800 added to function.array-key-first
Groups: php.notes 
Request: Send a blank email to php-notes+get-220761@lists.php.net to get a copy of this message
The best way to polyfill array_key_first() before php 7.3 is: $first_key = array_keys($array)[0]; ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.157.134 (proxied: 90.102.120.73) ---- Manual Page -- https://php.net/manual/en/function.array-key-first.php Edit -- https://main.php.net/note/edit/128800 Del: integrated -- https://main.php.net/note/delete/128800/integrated Del: useless -- https://main.php.net/note/delete/128800/useless Del: bad code -- https://main.php.net/note/delete/128800/bad+code Del: spam -- https://main.php.net/note/delete/128800/spam Del: non-english -- https://main.php.net/note/delete/128800/non-english Del: in docs -- https://main.php.net/note/delete/128800/in+docs Del: other reasons-- https://main.php.net/note/delete/128800 Reject -- https://main.php.net/note/reject/128800 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220761) next »