PHP Help...
- Started
- Last post
- 3 Responses
- effour
This is probably pretty basic...but i'm no programmer, so i'm hoping someone can give me a hand...thx!
array1 = color1, color2, color3
array2 = 1 - 10
array3 = 80 - 89
array4 = 90 - 99output to make a list of combinations:
color1-1
color1-2 (up to 10)
color1-80 (up to 89)
color1-90 (up to 99)
then the same for the other colors...
- plash0
not sure what the question is. but remember that the first position in all arrays has integer value of zero.
the layout is.
array1(position1 = Zero, position2 = One, position3 = Two); and so on.so in your above example (array1) the value for position 1 is color2
http://us3.php.net/manual/en/boo… also php.net has the best documentation...
- effour0
Thx Plash.
I need the arrays to combine and create and list if combinations based on the color array.
i'll do some more digging...see if i can figure it out...
thx..
- vaxorcist0
huh? don't really understand what you want....
you can use PHP to read a text file into an array..
file like;
(filename:colors.txt)
red
blue
green
fuschia
magenta
cyan$colors=file("colors.txt");
for($i=0;$i<sizeof($colors);$i++){
print "<br>$colors[$i]\n";
}