Reading & Comprehension: Statements in PHP
Posted: Mon Jun 23, 2003 4:05 pm
I have realized that it would be most beneficial if I could easily read through a statement in order to understand it. However, sometimes the way the statement is written really confuses me. For example:
I know what the statement does, that's not the issue, but I am now going to take a stab at breaking the statement down into a complete sentence. PLEASE correct me if I am wrong!!!
The counter starts at 0; Run through the following action for every time the counter reads less than zero. After each time, add the value of "1" to the counter.
There must be a simpler way. So finally, is there a simple solution to reading statements? Are there easy-to-follow, universal reading steps that can apply to all statements? If so, please let me know. Thanks.
Code: Select all
for ($counter = 0; $counter < 10; $counter++)
{
}The counter starts at 0; Run through the following action for every time the counter reads less than zero. After each time, add the value of "1" to the counter.
There must be a simpler way. So finally, is there a simple solution to reading statements? Are there easy-to-follow, universal reading steps that can apply to all statements? If so, please let me know. Thanks.