Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

output associate array by print_r

Tue Oct 28, 2008 1:39 am

Code:
<?php
$states
= array (
"Ohio" => array ("population" => "11,353,140", capital => "Columbus"),
"Nebraska" => array("population" => "1,711,263", capital => "Omaha")
)

print_r($states);

?>




Post a reply
  Related Posts  to : output associate array by print_r
 Array difference for associate array     -  
 Associate Analyst- Implementation     -  
 OUTPUT??     -  
 what is the output of this program and how it be?     -  
 Input-Output Operations     -  
 echo command to output HTML     -  
 Use for loop to output HTML table     -  
 compare an array with another array?     -  
 Pop the element off the end of array     -  
 PHP Array Functions     -  

Topic Tags

PHP Arrays