In the numeric array we can store multi value in one variable. If we have more than one value and we want to store in one variable name then we can use array. Array store value and assign indexing number each value. In the array indexing start with 0 and so on depend on number of values.
There are two method define array.

There are two method define array.
First Method
$arrayName=array(“Value1”,”Value2”,“Value3”);
Second Method
$arrayName[0] = ” Value1”;
$arrayName[1] = ” Value2”;
$arrayName[2] = ” Value3”;
Example:
<?php
$Mobile[0]=”Nokia”;
$Mobile[1]=”Samsung”;
$Mobile[2]=”Motorola”;
echo $Mobile[0].”is a Connecting People.”;
?>
Output
Nokia is a Connecting People.
Assalam O Alaikum Sir, mjy PHP k all videos tutorials chahiye urdu may plzz agar ap k pass hain to link send kr de
ReplyDeleteThank you