note 123722 added to function.key

From: Date: Sun, 24 Mar 2019 01:07:35 +0000
Subject: note 123722 added to function.key
Groups: php.notes 
Request: Send a blank email to php-notes+get-210431@lists.php.net to get a copy of this message
In addition to FatBat's response, if you'd like to find out the highest key in an array (assoc or not) but don't want to arsort() it, take a look at this: <?php $arr = [ '3' => 14, '1' => 15, '4' => 92, '15' => 65 ]; $key_of_max = array_search( max($arr) , $arr); ?> ---- Server IP: 208.43.231.9 Probable Submitter: 82.199.157.34 (proxied: 179.232.21.36) ---- Manual Page -- http://php.net/manual/en/function.key.php Edit -- https://master.php.net/note/edit/123722 Del: integrated -- https://master.php.net/note/delete/123722/integrated Del: useless -- https://master.php.net/note/delete/123722/useless Del: bad code -- https://master.php.net/note/delete/123722/bad+code Del: spam -- https://master.php.net/note/delete/123722/spam Del: non-english -- https://master.php.net/note/delete/123722/non-english Del: in docs -- https://master.php.net/note/delete/123722/in+docs Del: other reasons-- https://master.php.net/note/delete/123722 Reject -- https://master.php.net/note/reject/123722 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210431) next »