In part 5 of my Web Design and Programming tutorial I will cover the following topics:

How to turn a string into an array

How to turn an array into a string

How to sort an array

How to pull data from a file and store it in an array

And, I’ll also go over a bunch of other functions specific to arrays. If you missed part 1 of this tutorial it is available here Web Design and Programming.

All of the code in this tutorial will follow the video. Use it in any way that you would like.

If you have any questions or comments leave them below and I’ll answer them.

Code from the Video

<html>
<head>
<title><?php echo “Arrays”;?></title>
</head>

<body>

<?php
# An array is just a big box containing many similar boxes
# This information is similar to each other
# All the the information or values have a coresponding key or label associated with it
# An array can contain any combination of numbers, strings or other arrays

First I must say THANK YOU SO MUCH!!!!
I am enjoying learning all of this great info and hope to make couple of different WordPress themes.

(using WAMP, firefox, i.e., and Notepad++)
I am working my way through this tutorial and can’t seem to fix a couple of things. I have checked my code, retyped my code, changed my code, added and subtracted code, and still can’t fix the problems:

1) This is the code I typed that will NOT show the “India is in the list” on the webpage even through multiple variations:

2) This next section will not put Cuba in alphabetical order. Whatever is first in the list will sort to last. I have tried many variations and cannot get the first item to be included in the sort order correctly.
/*