Foreach loop not working in PHP code


#1
$kittenColors = array(
  'Fluffy' => 'tabby',
  'Midnight' => 'black',
  'Admiral Snuggles' => 'white',
);

foreach($kittenColors as  $name => $color)
{
  
  echo "The kitten name is" .$name."Color is" .$color. "<br/";

}

#2

Technically, it is working.
It’s only displaying Fluffy because you didn’t close your line break element.


#3

thank you ,i will try again and see if it works this time