<?php // An indexed array of programming languages $languages = ['PHP', 'JavaScript', 'Python', 'Go']; // Accessing elements by their index echo "The second language is: " . $languages[1] . PHP_EOL; // Index 1 is the second element // To see the whole array structure, use print_r() or var_dump() print_r($languages);
You have javascript disabled. You will not be able to edit any code.