This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Arrays Forum

View Course » View Exercise

119 points
Picture
Submitted by
Michiel Welling
over 4 years ago

what am I doing wrong?

this is what I've got:

<?php
$languages = array("HTML/CSS",
"JavaScript", "PHP", "Python", "Ruby");
// Write the code to remove Python here!
unset($array{3});


6 votes

permalink

Your code attempts to remove something from a variable that's not been specified.

Replace $array in unset with the name of your variable.

113 points
Picture
Submitted by
Jesper Sørensen
over 4 years ago


-1 votes

permalink

Hello Michiel Welling. All you need to do is remove "Python", from your code. Hope this helps!

1038 points
53f3764e282ae3da53000455_587160470
Submitted by
Julijana Seketa
about 4 years ago