Change all keys in an array to lowercase:


SUBMITTED BY: henry1874w

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

FORMAT: Text only

SIZE: 111 Bytes

HITS: 278

  1. <?php
  2. $age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43");
  3. print_r(array_change_key_case($age,CASE_LOWER));
  4. ?>

comments powered by Disqus