Indexed array creation
📖 Scenario: You are creating a simple list of fruits to use in a grocery app.
🎯 Goal: Build a PHP program that creates an indexed array of fruits, adds a new fruit, and then prints the full list.
📋 What You'll Learn
Create an indexed array with exact fruit names
Add one more fruit to the array
Use a loop to access all fruits
Print the fruits in order
💡 Why This Matters
🌍 Real World
Arrays are used to store lists of items like fruits, products, or users in many web applications.
💼 Career
Knowing how to create and manipulate arrays is a basic skill for PHP developers working on websites and backend systems.
Progress0 / 4 steps