[ Team LiB ] Previous Section Next Section

Summary

In this hour, you learned about arrays and some of the many tools PHP provides to work with them. You should now be able to create both numerically indexed and associative arrays and output data from them using a foreach loop.

You should be able to combine arrays to create multidimensional arrays and loop through the information they contain. You learned how to manipulate arrays by adding or removing multiple elements and examined some of the techniques PHP makes available to sort arrays. Finally, you learned about functions that use array-like indexing to help make your own functions more flexible.

In Hour 8, "Working with Strings," we complete our tour of PHP fundamentals by taking a look at PHP's support for objects. PHP developers are increasingly creating libraries using classes and objects, so this is an area well worth studying.

    [ Team LiB ] Previous Section Next Section