This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
bug found in the site! My code wasn't working
this is my code.you guys want me to output $languages but first modify it so here i have done the exact thing but my code doesn’t work please help. my code is here : <?php $languages = array(“HTML/CSS”,”JavaScript”, “PHP”, “Python”, “Ruby”); echo $languages[3]; $languages[3] = “c++”; // Write the code to modify echo $languages[3]; // the $languages array!
?>
Answer 559e445993767653720004b5
0 votes
This has just happened to me too. It’s not working…. Please help us to solve this problem! Here is my code: <?php $languages = array(“HTML/CSS”, “JavaScript”, “PHP”, “Python”, “Ruby”);
echo $languages{1}
// Write the code to modify
// the $languages array!
$languages{1} = "C++";
echo $languages{1};
?>
Answer 55a4eafa76b8fefac0000313
0 votes
It worked for me too! Thank you so much :)
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
3 comments
remove the first $languages {1} then it will work it worked for me =D
sorry remove the first echo $languages{1} then it should work fine
Thank you, worked to me!