Question: Write a PHP function that accepts an array as an argument and after changing all the array's values to uppercase returns the new array.
Write a PHP function that accepts an array as an argument and after changing all the array's values to uppercase returns the new array. Sample array: SColor - array('a' -> 'Blue', 'B' => 'green', 'e'=> 'Red'); Expected Output: Array ( [a] => BLUE [B] => GREEN [c] => RED)
Step by Step Solution
There are 3 Steps involved in it
Heres a PHP function that takes an array converts all its values to uppercase and returns the mo... View full answer
Get step-by-step solutions from verified subject matter experts
