Problem with Arrays

#1

I am learning arrays and have entered code as advised (see bottom of below)- apparently the output should be:
*Letter[0]=A
*Letter[1]=B
*Letter[2]=C

*Number[0]=1
*Number[1]=2
*Number[2]=3

Mine reads:

  • L=A

  • e=B

  • t=C

  • N=1

  • u=2

  • m=3

It looks very clever and all that but I can’t work out how to amend the code to achieve the result that I should have got. Would someone be able to advise please. Many thanks

<?php
$letters=array('A','B','C');
$numbers=array(1,2,3);
$matrix=array('Letter'=>$letters, 'Number'=>$numbers);
Echo "<p>Start:{$matrix['Letter'][0]}</p>";
foreach($matrix as $array=> $list)
{
Echo '<ul>';
foreach($list as $key=> $value)
{echo "<li>$array[$key]=$value";}
Echo '</ul>';
}
?>
#2

i didn’t understand anything.