FAQ
Hi All,

I came across a situation where I had to make the first character of an
arrays keys uppercase, and found the array_change_key_case function, but
noticed it only supported CASE_UPPER and CASE_LOWER. Attached is a patch to
also add support for CASE_LCFIRST and CASE_UCFIRST.

The patch is against PHP_5_3. I wasn't sure which branch I should write it
for--let me know if it should be against another branch. This is my first
patch submission so any comments are appreciated.

Regards,
--Matthew

Search Discussions

  • Jani Taskinen at Sep 22, 2009 at 7:26 pm

    Matthew Fonda wrote:
    Hi All,

    I came across a situation where I had to make the first character of an
    arrays keys uppercase, and found the array_change_key_case function, but
    noticed it only supported CASE_UPPER and CASE_LOWER. Attached is a patch
    to also add support for CASE_LCFIRST and CASE_UCFIRST.

    The patch is against PHP_5_3. I wasn't sure which branch I should write
    it for--let me know if it should be against another branch. This is my
    first patch submission so any comments are appreciated.
    New stuff -> HEAD only (aka trunk :)

    --Jani

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedSep 22, '09 at 5:15p
activeSep 22, '09 at 7:26p
posts2
users2
websitephp.net

2 users in discussion

Matthew Fonda: 1 post Jani Taskinen: 1 post

People

Translate

site design / logo © 2022 Grokbase