How to finish lesson 4


#1

The only way to finish lesson 4 is modifying the index '0'

example:

$languages[0] = "Pascal";
eco $languages[0];

it should work.


#2

<?php
$languages[0] = "Pascal";
echo $languages[0]; // you have a typo here
?>

#3

HOW DOES THIS WORK IT MAKES NO SENSE HOW DO I DO DIS
I NEED HELP MENTAL HELP PLEASE
I CANT EAT FOOD BECAUSE I CANT OPEN MY MOUTH


#4

Depends on what your asking

$languages = array("English" , "Spanish" , "French");

echo $languages[0]; //is showing you the first string in the array (which would be "English") that is stored in the variable $languages

$languages[0] = "Blue"; // is changing the first string in the array from "English" to "Blue"

So now the new array would look like:
$languages = array("Blue" , "Spanish" , "French");