$v) { echo "$k : $v
"; } echo " It uses form input, \"\$question\", then uses the explode function to create an array based on the input. Arrays are 0-based, so the first element in an array is zero. Using the sample string:
'I want to know about arrays', it prints
0 : I
1 : want
2 : to
3 : know
4 : about
5 : arrays
"; } echo "
view code
"; ?> This page uses a form with a single entry field to demonstrate an array.
Arrays are kind of like directories. You can put folders and files inside a folder and you can store a arrays inside an array. Associative arrays are more complicated than we need to be right now.

Arrays use keys and values to define their contents.