Hi guys,
Recoding some perl as PHP. Can anyone suggest the best way to write write the following perl code in PHP:
for my $i ( $a..$b, c$..d$, e$..$f) { ... }
The best I have come up with is:
foreach ( ( array_merge ( range($a, $b), range($c, $d), ... ) ) as $i ) { ... }
Is there a better way?
Thx in advance,
Scott