Now that you know how to use them, you can add a new level of sophistication to your PHP scripts. Multidimensional arrays are useful for all sorts of things, such as holding multiple database records and storing data to display in tables. In this tutorial you’ve seen how to create, manipulate, and loop through multidimensional arrays in PHP. Here’s an example that creates a 2-dimensional array of movie information, then loops through the array, displaying the information in the page:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |