[php function]--array function--array_change_key_case

WBOY
Release: 2016-07-29 09:01:01
Original
1027 people have browsed it

array_change_key_case

  • Version: >= php4.2
  • Description: array_change_key_case(array in put[ ,intcase=CASE_LOWER ]), convert the array key to uppercase or lowercase.
  • Parameters:
    • input: converted array
    • case: uppercase: CASE_UPPER lowercase: CASE_LOWER (default)
  • Example:
<code><span>$input</span> = <span>array</span>(<span>"startTime"</span>=><span>1</span>,<span>"endTime"</span>=><span>2</span>);
    <span>$output</span> = array_change_key_case(<span>$input</span>, CASE_LOWER);
    print_r(<span>$output</span>);
    <span>//result</span><span>#array([starttime]=>1, [endtime]=>2)</span></code>
Copy after login
').addClass('pre-number ing' ).hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces [php function]--array function--array_change_key_case, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template