-
<?php
-
$customers
-
= array(
-
array('first' => 'Bill', 'last' => 'Jones',
-
'age' => 24, 'state' => 'CA'),
-
array('first' => 'Mary', 'last' => 'Smith',
-
'age' => 32, 'state' => 'OH'),
-
array('first' => 'Joyce', 'last' => 'Johnson',
-
'age' => 21, 'state' => 'TX'),
-
);
-
printf("print_r():<pre>%s</ pre>", print_r($customers, TRUE));
-
printf("var_export():<pre>%s</ pre>", var_export($customers, TRUE));
-
print 'var_dump():<pre>';
-
var_dump($customers);
-
print '</ pre>';
-
?>
array, PHP
This entry was posted
on Tuesday, May 26th, 2009 at 9:36 am and is filed under Arrays, PHP.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.