|
|
Creating arrays in PHP
We 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
You can check the presence of any element inside the array by using in_array() function.
|
|
| |
|
|
|
|
|