ForNext
Only Do What Only You Can Do
109. iteration
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
for $i (1, 2, 3) { print "$i\n" }
PHP
foreach (array(1,2,3) as $i) { echo "$i\n"; }
Python
for i in [1,2,3]: print(i)
Ruby
[1,2,3].each { |i| puts i }