|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-01 00:35 UTC] rasmus@php.net
-Status: Open
+Status: Bogus
[2011-07-01 00:35 UTC] rasmus@php.net
[2011-07-01 00:40 UTC] rasmus@php.net
[2011-07-01 03:02 UTC] anticom at hotmail dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 10 09:00:01 2025 UTC |
Description: ------------ I realy would prefer a function for associative arrays, enableing to get an index-specific key. This would be usefull especialy for big array's, so you have to iterate through them, to get a specific key. The other advantage would be, that you could iterate through the array manually with a for-loop, without having to store all the key's in a temporary array using array_keys() Test script: --------------- <?php $arr = array("foo" => 'bar', "secondFoo" => 'anyval'); echo array_getKeyAt($arr, 1); ?> Expected result: ---------------- output would be: secondFoo Actual result: -------------- [function not implemented yet afaik]