PHP Programs

PHP program for Multidimensional Array

In this program we demonstrate use of the Multidimensional Array, A PHP array is a variable that stores similar type of data (related data) in a single variable.

Program

<?php

$a=array(10,20,30);

$b=array(40,50,60);

$marray=array($a,$b);

$t=$marray[0][2];

print"$t<br>";

$v=$marray[1][1];

print"$v";

?>

When Run The Program Following Output:

30

50

Description

Releted Programs

© 2017 codewmAll rights reserved.