Changing item in array displays original Item and New item

php

#1

so I'm on the part where you change the value of an item in an array and get it to display the new item rather than the original but when I write the code it displays the original and the new item?
`

<?php
    $languages = array("HTML/CSS",
    "JavaScript", "PHP", "Python", "Ruby");
    
    echo $languages[1];
    
    $languages[1] = "java";
    
    echo $languages[1];
    
  ?>

`


#2

Remove the first echo line, that should fix the problem.


#3

Thank you so much! I was going off of the example provided so it confused me


#4

Thank you man! Realy you helped me so much:)


#5

Thank You guys so much! This helped me out.