Get Key Values from Array Php

by Mohan 2014-08-07 16:59:43

Get Key Values from Array Php

To get key values of an array,array_keys can be used.
<?php
$ranges=array( 'A-B'=>range('A','B'), 'C-D'=>range('C','D'), 'E-F'=>range('E','F'), 'G-H'=>range('G','H'), 'I-J'=>range('I','J'), 'K-L'=>range('K','L'), 'M-N'=>range('M','N'), 'O-R'=>range('O','R'), 'S-T'=>range('S','T'), 'U-Z'=>range('U','Z') );
 $alpharange = array_keys($ranges);
 print_r($alpharange);
?>


737
like
0
dislike
0
mail
flag

You must LOGIN to add comments