Here is an example of how to force all values in array tolower case. This could, of course, be used in the same way to make the array UPPERCASE or do anything else you wish to the array values. Note the that the string is passed to the array by reference. This is so the actual array values are manipulated.


/*** an array of mixed case words ***/
$array = array('MAC''Apple''osX');

 * @Lower case an array 
 * @param ref string $string
 * @return string
function lower(&$string){
$string strtolower($string);

/*** apply the lower function to the array ***/

$array as $value){