I'll try to explain you some things...
[PHP$one = 1; // $one contains a NUMERIC value, which is 1
$one = "1"; // $one contanis a STRING, which is 1[/code]
For the for loop... the semi-colons are used to separate condition...
for(<initial_condition>;<final condition>;<step>) {
...
}
It's like if you had three different parts in a string separated by a semi-colon. It's unuseful to put a semi-colon at the end...
part 1;part 2;part 3
If when you split it, you take everything between the beginning and the first semi-colon and name that part 1. After, you take everything between the first semi-colon and the second, and you call that part 2. Finally, you take everything between the second semi-colon and the end, and call that part 3.
Also, if you put a semi-colon after the third condition (step), it doesn't look nice !!
for($i = 0; $i < 100; $i++😉 {
}
Look like it's ugly !!! 😉 Yark !! Ok, I know, it's a smiley... but if you put a smiley in that place, you won't have a smile on your face !!!
Is it clearer ?