For school we have to do some excersises but I don't understand this too much. For example this one:
1 Draw a christmas tree the user must be able to give in the height by using a form.
x xxx
xxxxx xxxxxxx
If anyone knows please let me know. Thanks
Kris
Assuming $number is the height of the tree...
$x = 1; for($count=0;$count<$number;$count++) { echo "<div align='center'>" . str_repeat("x",$x) . "</div>"; $x+=2; }
I didn't test it, but I think it works. Tell me if I get an A.
---John Holmes...