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

Arrays Forum

View Course » View Exercise

167 points
597fb53e71b7f9fc28c43ab916a3c765?s=140&d=retro
Submitted by
tss3
about 4 years ago

Error printing the value

For some reason I get the error "Oops, try again! It looks like you didn't print 'vba ' (the element you modified)!"

However vba does show in the preview pane. I have tried moving editing different elements of the array with different words to no avail.

Help please!

<?php
$languages = array("HTML/CSS",
"JavaScript", "PHP", "Python", "Ruby");
$languages{1} = "vba" ;
print $languages{1};
?>


1 vote

permalink

Using C++ instead of vba worked. The tutorial should be updated if there is a requirement of this sort for the modification.

167 points
597fb53e71b7f9fc28c43ab916a3c765?s=140&d=retro
Submitted by
tss3
about 4 years ago