PHP5, HTML & CSS Web Project | Analyzing Array Outputs & Accessing Array Elements | Part-8

Опубликовано: 03 Октябрь 2024
на канале: Nafis's Classroom
81
0

We will try to use a php function to see the result of our array on our browser. The output will show something different than what we included in our script. It will provide numerical indexes to each of the values that we have included in the array. This is because the compiler will create a list that has a consecutive ordering. The elements counting will always start from zero when whenever we create an array. As each of the elements or values have a corresponding index in runtime, we can actually refer the values using their correspoding indexes like a variable.