Arrays are a fundamental data structure that stores data in memory. In Ruby you can store anything in an array, from strings to integers and even other arrays. The elements in an array are accessed using their index, which starts at 0. This is what an array containing the words “cat”, “dog” and “tiger” would […]

Read More

In the first part we left off laying the foundations for our dynamic array. Now it’s time to test it, this is the code responsible for that:

Read More

While working on my C programming skills I wrote a small program to simulate the functionality of dynamic arrays on other languages. That is arrays that grow as you add elements to them instead of having a fixed size. I decided that is has to be reusable and that you should be able to have […]

Read More

This is an introduction to PHP arrays, so if you are new to the language or you just need a refresher you can get up to speed pretty fast. This is how we initialize an empty array and add some elements to it:

Then we can see it’s contents using the print_r() function. You […]

Read More