Arrays in PHP: Introduction- What is an Array? What is an array? · An array is a single variable that holds multiple data. In PHP, it enhances the scope and flexibility of variables. · When we create any variable, we can store just a single value, but an array provides the ability to store multiple values under a single variable name. · In PHP, we can store different types of data in a single element, like int, float, and character-like data in a list form. · PHP supports single-dimensional, two-dimensional, and multidimensional arrays. · There were three types of arrays 1. Index array: In indexed arrays, array elements have a numerical index that starts from 0. Indexed array initialized as well a...
Comments
Post a Comment