2005-07-29から1日間の記事一覧

ループの簡単な書き方

You normally would use a counted for loop: MSH:19 C:\temp\monad > for($x = 0; $x -lt 5; $x++) { do-something } But here's a neat little trick to save some typing, if you don't care which iteration of the loop you're in: MSH:19 C:\temp\mona…