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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 44 = ?
Subscribe to this entry?

 
 [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: Sat May 04 12:01:31 2024 UTC