PHP array_change_key_case Function Example
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 - NiceSnippets.com?</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....
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example