The required answer i am not getting?


it says did you use = to modify one of the elements of $languages.

    <title>Modifying Elements</title>
        $languages = array("Web",
        "JavaScript", "PHP", "oops", "Ruby");
        // Write the code to modify
        // the $languages array!
        echo $languages[3];


If you want to modify anything at the array, you should write the name of the array, and the identification number of the thing that you want to change between square brackets.

$languages = array("HTML/CSS",
"JavaScript", "PHP", "Python", "Ruby");

    $languages[0] = "C++";

    echo $languages[0];
    // Write the code to modify
    // the $languages array!


at this example the first string at the array will change to become C++.


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