Forloops practing foreach


#1







<?php
$numbers = array("I'm ","learning ","PHP!");
foreach ($numbers as $item) {
echo "

  • $item
  • ";
    }
    unset($word);
    ?>


    This is my code, it turns out the correct result, however, I am not allowed to advance because "Oops, try again. Did you replace the third blank with a } ?"

    can someone please help.


    #2

    try this

          <?php
            $sentence = array("I'm ", "learning ", "PHP!");
            
            foreach($sentence as $word){
              echo $word;
            }
            unset($sentence);
          ?>

    They already gave you the variables and that's what they will be testing for. try not to change the names