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

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

1 Expert Approved Answer
Step: 1 Unlock

Heres a PHP function that takes an array converts all its values to uppercase and returns the mo... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!