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.
|