note 124865 added to function.array-key-last

From: Date: Sun, 29 Mar 2020 21:43:23 +0000
Subject: note 124865 added to function.array-key-last
Groups: php.notes 
Request: Send a blank email to php-notes+get-214390@lists.php.net to get a copy of this message
https://www.php.net/manual/fr/function.array-key-last.php#123950 did return the first key of my array only: "array_keys($array)[count($array) - 1] ?? null" works I hope the example is fine for everyone else. My array is: [ new NameExpression('d', 0), new NameExpression('f', 0), new NameExpression('g', 0), ] ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 78.252.39.107) ---- Manual Page -- http://php.net/manual/en/function.array-key-last.php Edit -- https://master.php.net/note/edit/124865 Del: integrated -- https://master.php.net/note/delete/124865/integrated Del: useless -- https://master.php.net/note/delete/124865/useless Del: bad code -- https://master.php.net/note/delete/124865/bad+code Del: spam -- https://master.php.net/note/delete/124865/spam Del: non-english -- https://master.php.net/note/delete/124865/non-english Del: in docs -- https://master.php.net/note/delete/124865/in+docs Del: other reasons-- https://master.php.net/note/delete/124865 Reject -- https://master.php.net/note/reject/124865 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214390) next »