About us Privacy Disclaimer Contact us
FAQ Help Advertising Feedback
Home Sitemap Search Donate us

  Home > Computer & I'net > Arrays Intro...

   Browse by title articles:
   What is hot:

for loops

Arrays Intro

Creating/Accessing Arrays

Adding/Replacing Arrays

Merging Arrays

Counting Arrays

Metacharacters
PHP for Dummies
Numbers - Formatting
Prev articles1234567 8 9101112Next articles



Arrays Intro


Computer & I'net articlesArrays Intro

by David Stanley    



Arrays are a bunch of variables taking up the same space.

Think of a fruit pantry. You have a box of apples, a box of oranges, and a box of bananas. The apple box has a label saying "box1", oranges are "box2" and bananas are "box3".

$box1 = "apples";
$box2 = "oranges";
$box3 = "bananas";

Those are now named variables containing values. The fruit pantry (or closet or fridge or whatever you want to put these boxes into) will be the array. An array is a container that holds variable containers.

$pantry[ ];

The following tutorial pages will show how to create and use arrays.




-----------------
Article by David Stanley. Visit his site http://www.htmlite.com. Reprinted with permission.





Rent vs Buy




  Disclaimer | Privacy | Terms of useCopyright © 2004 Nice2know.com