Skip to content

Instantly share code, notes, and snippets.

@gabrielsaints
Created June 4, 2019 19:19
Show Gist options
  • Save gabrielsaints/3edea6e3df54446984ed124af6b91277 to your computer and use it in GitHub Desktop.
Save gabrielsaints/3edea6e3df54446984ed124af6b91277 to your computer and use it in GitHub Desktop.
<?php
$vehicle = array("b"=>"Bus","t"=>"Truck");
print_r(array_change_key_case($vehicle, CASE_UPPER));
?>
/*
OUTPUT
Array
(
[B] => Bus
[T] => Truck
)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment