SQL PHP HTML ASP JavaScript articles and free scripts to download
 

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

$ar=array("FName"=>"John","Address"=>"Streen No 11 ","City"=>"Rain Town","Country"=>"USA");

You can Read how to display elements of an array




Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked


Join Our Email List
Email:  
For Email Newsletters you can trust
Array Functions
PHP Sections