If two or more keys will be equal after running array_change_key_case() (e.g. "b" and "B"), the latest array will override the


SUBMITTED BY: henry1874w

DATE: June 22, 2017, 12:06 a.m.

FORMAT: Text only

SIZE: 128 Bytes

HITS: 306

  1. <?php
  2. $pets=array
  3. ("a"=>"Cat","B"=>"Dog","c"=>"Horse","b"=>"Bi
  4. rd");
  5. print_r(array_change_key_case
  6. ($pets,CASE_UPPER));
  7. ?>

comments powered by Disqus