|
|
Creating arrays in PHPWe will create an array and assign multiple values to this array like this
$my_data = array(“mydata1”,”mydata2”,”mydata3”, “Mydata”);
We can create an array with assigned Key and values like this.
$var=array(013=>"RKt",005=>"Bin",007=>"Alen");// Array from which the customer name is to be taken
$ar=array("FName"=>"John","Address"=>"Streen No 11 ","City"=>"Rain Town","Country"=>"USA");
You can Read how to display elements of an array
| |
|
| |
|
|
|
| Array Functions |
|
|
|
| PHP Sections |
|
|
|