PHP Array Function: array_change_key_case

The array_change_key_case function allows you to manipulate the textual data in an array by transforming it into uppercase or lowercase.

Syntax:

array_change_key_case(array, CASE_LOWER or CASE_UPPER)

The array is the name of the array whose values you wish to convert to upper or lowercase.
The parameter CASE_LOWER or CASE_UPPER is used to determine whether or not you are going to convert the values in the array to upper or lower case.

Example:

<?php
	$arrLevel = array ("a" => "Programmer", "b" => "Analyst", "c" => "Administrator");
	print_r(array_change_key_case($arrLevel, CASE_LOWER));
?>

The above code takes the values in $test and converts them to lowercase.
Converting your array values to uppercase is as simple as changing the code to reflect the following:

<?php
	$arrLevel = array("Programmer", "Analyst", "Administrator");
	print_r(array_change_key_case($arrLevel, CASE_UPPER));
?>