I'm just learning how to use arrays. All I need is a place to start, so here's the situation.
I have a db field that has multiple parts separated by double colon ( :: ). I can explode the field into an array. That's no problem.
$splitadpg = "$qryprd[addpages]";
$prodparts = array();
$prodparts = explode("::", $splitadpg);
I then want to print each of the parts.
echo $prodparts[x]."<br>";
(where x is the number from the array)
The various records have a different number of parts in the addpages field. Some may range from 1-3 items when exploded while others may contain 7-10 items when exploded.
How to I code the echo so that it will print each of the parts no matter how many or few of them there are?
Mr. Grammar