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
 [2003-03-05 09:43 UTC] phanto@php.net
but the documentation says CASE_LOWER

Patches

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 01:01:30 2024 UTC