---
title: "How many types of array are there in PHP?"  
description: "How many types of array are there in PHP?"  
author: "Barbara Jones"  
published: 2016-09-26  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/23063/how-many-types-of-array-are-there-in-php  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# How many types of array are there in PHP?

There are 3 types of array :- a) Indexed array:

These array can store numbers, string and objects but their index is represented by numbers. By default value of any index is 0.

## b) Multi-dimensional array

A multi-dimensional array consist one or more arrays.

## c) Associative arrays:

The associative array are similar to index array in terms of functionality but they are different in terms of key/index.

## Answers

### Answer by Barbara Jones

There are 3 types of array :- a) Indexed array:

These array can store numbers, string and objects but their index is represented by numbers. By default value of any index is 0.

## b) Multi-dimensional array

A multi-dimensional array consist one or more arrays.

## c) Associative arrays:

The associative array are similar to index array in terms of functionality but they are different in terms of key/index.


---

Original Source: https://www.mindstick.com/interview/23063/how-many-types-of-array-are-there-in-php

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
