Working with Arrays in PHP


Store multiple values in a single variable with indexed arrays.

Source Code

$fruits = ["Apple", "Banana", "Cherry"];
echo $fruits[0]; // Apple
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments