Re: [patch] Allow array_change_key_case to support ucfirst and lcfirst
| From: | Jani Taskinen | Date: | Tue, 22 Sep 2009 19:27:33 +0000 |
| Subject: | Re: [patch] Allow array_change_key_case to support ucfirst and lcfirst | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45630@lists.php.net to get a copy of this message | ||
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