I assume   inserts a the space, but in the 2nd set of code you lost me with for ($i = 0;$i<$max;$i++)
May I say you guys are freaks, I mean this as a compliment and I am envious of your abilities.
LOL when I grow up I wanna be a freak too.
Printable View
I assume   inserts a the space, but in the 2nd set of code you lost me with for ($i = 0;$i<$max;$i++)
May I say you guys are freaks, I mean this as a compliment and I am envious of your abilities.
LOL when I grow up I wanna be a freak too.
is the HTML code for a non-breaking space. These are used because normal spaces are treated specially (without text, they're ignored; if more than one space is in a row, all but one are ignored).This is a for loop, common to most C-like languages (and some that aren't C-like at all). The syntax is:Quote:
for ($i = 0;$i<$max;$i++)
and the meaning is:Code:for(initialiser; condition; incrementor)
Any of the three statements can be omitted, but the semicolons must still exist (for(;condition;) is equivalent to while(condition), and for(;;) is equivalent to while(true)).
- Execute the initialiser
- Check that condition is true; if not, break from the loop
- Execute the following statement or block of code
- Execute the incrementor
- Repeat from 2
Thanks Twey for the explanation.
Don't try it though, it will never end causing the browser to freeze.Quote:
for( ; ; ) is equivalent to while(true)).
There's a timeout defined in php.ini that will kill any script that takes too long to run.
I guess it's not in my server's settings. I made my browser "freeze" by using a never-ending loop (I set the condition (i < 15) to -15 by mistake).
I have no coding experience what so ever... so even though I really appreciate the explanation it seems may as well be in Chinese. (Which I can't read)
I am going to keep pushing forward though.
Good attitude, alot of people just give up (I did for C++ Windows API, lol. Just getting back into it now). Hopefully you'll get where you want to be.Quote:
I am going to keep pushing forward though.
Well I just need to push through this, CSS style sheets, and MySql, (which is really kind of boring now because I am not applying it anywhere.) Once I start a site which has a purpose, it will be interesting to see. I know that I don't have a chance in hell though if I don't at least take the time to have a basic understanding.
I don't blame you.Quote:
I did for C++ Windows API
Actually, I'm starting to get the hang of it. Given, I also took three hours to read the tutorial, instead of cut/pasting code into CodeBlocks and letting her go :D