Convert the values of an array into uppercase – PHP

<?php
 $testArray = array("Value1","Value2", "Value3");
 print_r(array_map('strtoupper', $testArray));
 // Array ( [0] => VALUE1 [1] => VALUE2 [2] => VALUE3 )
?>
Share

Leave a Reply

Your email address will not be published. Required fields are marked *