How to Access Array elements [Video]

Last updated on October 31st, 2020 at 09:00 am.

Accessing Array elements

Hey. And welcome to another video about Arrays. In the last video you had an Introduction  to Arrays .

As promised, this  video will continue with the same. Int his part you will learn how Arras are accessed.

In brief

  • Arrays are Zero Based Indices
  • Arrays are accessed using their identifier , which is the name of the array and their index. That is, to access an array you need the name of the array and the index of the element to access. As shown below

theArrayName[index]

eg accessing the third element in an Array called students .

Bear in mind that Arrays are Zero based, so to access the third element:

     students[2]

For  more on this, watch the video above and the previous one on Intro to Arrays.

Introduction to programming

If you are interested in learning more things like these. Things that will teach you about programming. Join The introduction to programming using the link /button below. It’s free to join.

Comment Here

Need WordPress help? Linux Server help? Talk to us.

  • We are your own WordPress customer service.
  • We set up Linux servers and install or migrate WordPress. Learn more here.
  • We support WooCommerce too.
  • Check out our WordPress customer support plans here or contact us below .

If you have any questions regarding WordPress support, Linux server support or any of our services, feel free to reach out or read more on our services page.

Join this free course:

How to host multiple WordPress
websites on a VPS

Close me!