Help!


#1


https://www.codecademy.com/courses/web-beginner-en-8a35h/0/6?curriculum_id=5124ef4c78d510dd89003eb8#


<html>
  <head>
    <title>Modifying Elements</title>
  </head>
  <body>
    <p>
      <?php
        $languages = array("HTML/CSS",
        "JavaScript", "PHP", "Python", "Ruby");
        
         echo $languages[0],


      $languages[0] = "SQL";
      echo $languages[0];
        
      ?>
    </p>
  </body>
</html>




why is it not outputting correctly?
This is what is being outputted: HTML/CSSSQL


#2

Hi just remove this line

echo $languages[0],

because the lesson want that you only print the new item you added.


#3

IT WORKED!!! Thanks so much...:grinning:


#4

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