hallo,

dit is mijn code

<?

$multi = array('red','blue','white','yellow');

for ($i=0; $i<3; $i++)
{
for ($j=0; $j<3; $j++)
{
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<font color={$multi[$i][$j]}>X</font>");
echo("<br>");
}
}

?>

en dit moet het worden

http://i407.photobucket.com/albums/pp160/stefbeukers/kleuren.jpg
]
Alvast bedankt
SanThe schreef op 09.05.2009 23:10
[quote='Karl schreef op 09.05.2009 23:08'][quote='SanThe schreef op 09.05.2009 22:56']<code>

Stoer, ik had aan een ingewikkeldere manier gedacht :-).[/quote]
Tja, je kan het zo moeilijk maken als je maar wilt. ;-)[/quote]
Zeker, dat is dan ook heel interessant om dat probleem weer op te lossen (iig, dat vind ik).

Reageren