Q:

Echo a child of array

This is my php code for showing Book an Books numbers: (This is example)
<?php
$age=array("Peter"=>array("Book"=>"37","Books"=>"47"),"Ben"=>"37","Joe"=>"43");

echo "Book = " . $Peter['Book'] . ". And Books = "  . $Peter['Books'];
?>

Result:  Book = 37 And Books = 47
But I have receive error. Where is problem?

A:

To access the values of the array use the following:
$age['Peter']['Book'] instead of $Peter['Book']
and
$age['Peter']['Books'] instead of $Peter['Books'].

