PHP array_change_key_case Function Example

Admin   PHP   129  2021-03-18 00:30:07

Hello Friends,

Now let's see example of how to use array_change_key_case function in php. This is a short guide on php if array_change_key_case function. We will use array_change_key_case function in php. Here you will learn use of array_change_key_case function in php. We will use if array_change_key_case function in php. Let's get started with array function in php.

Here i will give you example of how you can check array_change_key_case function in php file.

Syntax

 

array_change_key_case(array, case)

Example

 

<!DOCTYPE html>

<html>

<head>

<title>How To Check If array_change_key_case Function In Php - ?</title>

</head>

<body>

<?php

$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");

print_r(array_change_key_case($age,CASE_UPPER));

?>

</body>

</html>

Output:

 

Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 )

It will help you....