It's not what it says


Hi I think there is a problem with this code:


$myArray = array("red", "blue", "yellow");
echo $myArray[1]; // outputs "blue"
$myArray[1] = "green";
echo $myArray[1]; // outputs "green"


is not what it's says


I don't know why, but when I replaced your quotation marks it worked for me. I guess it didn't recognise the characters.

Replace these: “” with these: "" wherever they're in use.


It didn't work for me, either. I'm unable to finish the quizzes because I can't output the $languages quiz correctly. I didn't think I was doing anything wrong, but when I copied the colors array in just as the website coded it and pasted it into the script it showed up "bluegreen". Didn't take out the "blue" and replace it with "green", just added green next to blue. Did the same thing with $languages. Really frustrating. I noticed this was happening in previous quizzes where their examples weren't showing up as they said they would, but now I can't even move forward with the quiz.


Same situation here.


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