Posts

Showing posts from June, 2007

PHP Arrays

 Arrays are extremely versatile and easy to use. One reason is because they are used in many programming languages including PHP. This article provides an introduction to arrays, its use cases, and how it can be implemented in projects. There are two categories of arrays: - Static arrays - These are arrays that you know the size of their contents before using them. For example, if you want to store the names of your favorite colors, then you would create an array with seven slots to store color names. - Dynamic arrays - These are arrays that automatically grow as more items are added into them. For example, if you want to store a list of your friends’ phone numbers without knowing how many phone numbers there will be then this is the type of array for you!