array_change_key_case

It converts the keys of an array into uppercase

Example

<?php
echo “<pre>”;
$array = array(“FirSt” => 17, “SecOnd” => 7);
print_r(array_change_key_case($array, CASE_UPPER));
?>

Output

Array
(
[FIRST] => 17
[SECOND] => 7
)