array_keys : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_keys



<?php
   $state["Delaware""December 7, 1787";
   $state["Pennsylvania""December 12, 1787";
   $state["New Jersey""December 18, 1787";
   $keys = array_keys($state);
   print_r($keys);
   // Array ( [0] => Delaware [1] => Pennsylvania [2] => New Jersey )
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function