« on: November 21, 2012, 08:24:37 pm »
This would be an infinite loop, wouldn’t it? Operations in a condition check are A-OK as long as they make paradigmatic sense and aren’t terribly expensive.Code: [Select]
$strText = "Hello World!";
$intTextLength = strlen($strText);
while ($intTextLength != 0)
//do something that would make $strText's length shrink until 0
I’m also okay with one-letter variables being used for obvious and transient purposes. Saves typing time, confuses nobody.