PHP Indexed Arrays

Indexed arrays are arrays with a numeric index. They are created automatically when you assign values to them.

Example of Indexed Arrays

<?php
$fruits = array("apple", "banana", "orange");
echo $fruits[1]; // Outputs: banana
?>

Output:

banana

Explanation: This example demonstrates how to access an item in an indexed array using its numeric index.