Changing item in array displays original Item and New item



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?

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



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


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


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


Thank You guys so much! This helped me out.