This forum is now read-only. Please use our new forums at

67 points
Submitted by
Nelson Malath
about 4 years ago

Regarding $headCount Variable

Just after <?php syntax, the variable $headCount has been assigned a definite value, i.e. 0.
Then why is while ($headCount < 3)is mentioned? The value of the variable is mentioned at the time of defining the variable, then how can it's value change over time?

0 votes


Hi Nelson,

I would need to see the code to know what's going on, but I have a feeling there's something like $headCount++ at the end of the do {...} section of the code.

2835 points
Submitted by
Zeke Y
over 3 years ago