array_values : Associative Array : Data Structure PHP Source Code


PHP Source Code » Data Structure » Associative Array »

 

array_values



<?php
   $population = array("Ohio" => "11,421,267""Iowa" => "2,936,760");
   $popvalues = array_values($population);
   print_r($popvalues);
   // Array ( [0] => 11,421,267 [1] => 2,936,760 )
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Associative Array