Arrays in php

Home » Tutorials » PHP » Arrays in php
In this lesson we’ll consider arrays. Arrays are very important data structure in a lot of different programming languages. In pjp there are a lot of functions to work with arrays. Some of iy we’ll consider in this tutorial. Also you will know about associative arrays, and foreach loop.
Besides we’ll consider how to add elements to arrays, how to extract first and last elements form array. It is important to note, arrays have got two main characteristics – keys and values. To work with arrays in loop, we must know array length. For this purpose php has got count function

As a homework assignment I offer you write script, which will count average array value. In next lesson we’ll talk about array sorting.


Submit a Comment

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.

Pin It on Pinterest

Share This