Examining an Array with print_r()
<html>
<head>
<title>Testing the print_r() Function</title>
</head>
<body>
<div>
<?php
$characters = array (
array (
"name"=> "bob",
"occupation" => "A",
),
array (
"name" => "sally",
"occupation" => "B",
)
);
print_r( $characters);
?>
</div>
</body>
</html>
Related examples in the same category