Putting it all together



I don't see a mistake but there is a error message please help.

    <title>I am the King of Arrays!</title>
    $myArray = array('Focusrite'=>'interface',

  // On the line below, output one of the values to the page:
      echo $myArray['Focusrite'];
      echo '<br/>';
  // On the line below, loop through the array and output
  // *all* of the values to the page:
    foreach ($myArray as $make=>$equipment){
      echo $equipment . ': ' . $make . '.<br/>';


copy the code and Refresh/reload your browser :slight_smile:
then paste it


ok thanks i done that and it works


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.