php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50430 array_key_position
Submitted: 2009-12-09 18:30 UTC Modified: 2009-12-09 19:25 UTC
From: james at calminferno dot net Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.1 OS: All
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: james at calminferno dot net
New email:
PHP Version: OS:

 

 [2009-12-09 18:30 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-09 19:25 UTC] fa@php.net
As you already explained, it's chaining 2 already built-in functions, both array-related. Doesn't look like another function is needed here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC