Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Summary

Different programming languages call arrays by different names and have different methods for manipulating them, but any programming language worth using provides some means of working with sets of data. PHP is no different in this regard. In fact, as you had the chance to see in this chapter, PHP excels in its array-handling capabilities. What PHP refers to simply as an array really encompasses two related but different structures—ordered and unordered lists.

In this chapter, we covered PHP arrays and array functions, starting with creating and populating them and then looking at different techniques for adding elements to existing arrays and removing elements from them either singly or in groups. We also discussed how to determine whether a given element exists in an array, how to access that element once you have made that determination, and how to traverse an array in a systematic fashion.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


 Â