Php

Basic array concept and how to use php array and mysql

Google+ Pinterest LinkedIn Tumblr

What is Array? how to use  php array?

An array is a variable, which can hold more than one value at a time.
php array basic function defined as
array();

example

< ?php

$design = array('photoshop','flash','dreamviewer','html5');

echo $design[0]; //output is photoshop

echo $design[1]; //output is flash

?>

Three Types of Php array

1. Indexed array
2. Assocaiative array
3. Mutlidimentional array

Click Here to know indexed array

I'm Rajasekar - Web developer, Freelancer, Blogger and Owner of DeveloperDesks. From India lives in Bahrain. I love to do coding, Creating websites and trying different with code and designs. You Can Hire Me