Multidimensional Arrays in PHP

A multi-dimensional array each element in the main array can also be an array. And each element in the sub-array can be an array, and so on. Values in the multi-dimensional array are accessed using multiple index.

Example
In this example we create a two dimensional array to store marks of three students in three subjects −

This example is an associative array, you can create numeric array in the same fashion.

This will produce the following result −

Wamp Server localhost is not working?

If wamp server is not working the problems might be your port 80 is closed. Check if the Wamp Icon Color is Yellow? If yes then below are the solution

Solution:

Go to Wamp icon and click > Apache > User other port > Enter 7080 as as 8080 might be busy in most case.

Updated Listen 80 to Listen:7080 and ServerName localhost to ServerName localhost:7080.

It will work fine.

Icon get green means its Working fine.