php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #22553 array_change_key_case defaults to CASE_UPPER
Submitted: 2003-03-05 09:43 UTC Modified: 2003-03-05 10:43 UTC
From: phanto@php.net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.2.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phanto@php.net
New email:
PHP Version: OS:

 

 [2003-03-05 09:43 UTC] phanto@php.net
but the documentation says CASE_LOWER

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-05 10:43 UTC] didou@php.net
Totally wrong :)

<?

$a = array (
        'foo' => 1, 
        'FooBAR' => 2
        );

print_r(array_change_key_case($a));

?>

Output on 4.2.3 :

Array ( [foo] => 1 [foobar] => 2 )

Cheers,

Mehdi
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 22:01:33 2025 UTC