Top Categories
PHP Arrays in Hindi | Types of Arrays in PHP in Hindi | Indexed Array in PHP in Hindi #44
- Category:
- Sub Category:
Welcome, Arrays in PHP and Types of Arrays in PHP. PHP Arrays - An array is a data structure that stores one or more similar types of values in a single value. Arrays in PHP is a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby
Welcome, Arrays in PHP and Types of Arrays in PHP. PHP Arrays - An array is a data structure that stores one or more similar types of values in a single value. Arrays in PHP is a type of data structure that allows us to store multiple elements of similar data type under a single variable thereby saving us the effort of creating a different variable for every data. The arrays are helpful to create a list of elements of similar types, which can be accessed using their index or key. An array is created using an array() function in PHP. There are basically three types of arrays in PHP: Indexed or Numeric Arrays: An array with a numeric index where values are stored linearly. Associative Arrays: An array with a string index where instead of linear storage, each value can be assigned a specific key. Multidimensional Arrays: An array that contains single or multiple arrays within it and can be accessed via multiple indices.