Change Array Case





9
Date Submitted Thu. Apr. 13th, 2006 10:46 AM
Revision 1 of 1
Coder mattrmiller
Tags Array | Case | PHP
Comments 0 comments
Change the case of an array.


<?

$aArray = array("Apple" => 1, "Orange" => 4, "Lemon" => 4);

print_r(array_change_key_case($aArray, CASE_UPPER));

?>
 

Matthew R. Miller

www.bluecreststudios.com
=================
Matthew R. Miller

http://bluecreststudios.com
http://www.codeandcoffee.com

Comments

There are currently no comments for this snippet.

Voting