#50430 [Opn->Bgs]: array_key_position

From: Date: Wed, 09 Dec 2009 19:25:15 +0000
Subject: #50430 [Opn->Bgs]: array_key_position
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145591@lists.php.net to get a copy of this message
ID: 50430 Updated by: fa@php.net Reported By: james at calminferno dot net -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: All PHP Version: 5.3.1 New Comment: As you already explained, it's chaining 2 already built-in functions, both array-related. Doesn't look like another function is needed here. Previous Comments: ------------------------------------------------------------------------ [2009-12-09 18:30:58] james at calminferno dot net Description: ------------ Create a single function called array_key_position that returns the array position of a key. Basically turning array_search( $key, array_keys( $my_assoc_array ) ) into a single function that returns the key position or false if doesn't exist. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50430&edit=1

« previous php.bugs (#145591) next »