note 12839 deleted from language.types.array by curt
| From: | curt@php.net | Date: | Tue, 06 Jul 2004 02:08:43 +0000 |
| Subject: | note 12839 deleted from language.types.array by curt | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72641@lists.php.net to get a copy of this message | ||
Note Submitter: mrberti@earthlink.net
----
One may want to take note of the print_r() function. Using it, one can print an array directly to
the browser.
<?
$arr = array(
'fruits' => array('apple','orange','bannana'),
'vegetables' => array('celery','cucumber','onion'));
print_r ($arr);
?>
prints:
Array ( [fruits] => Array ( [0] => apple [1] => orange [2] => bannana ) [vegetables]
=> Array ( [0] => celery [1] => cucumber [2] => onion ) )