Python biz var:
for i in range(length)
PHP ne?
Düz docs: den
foreach (range(0, 12) as $number) {
echo $number;
}
Eski moda for
döngüler:
for ($i = 0; $i < length; $i++) {
// ...
}
Ya range function kullanarak foreach:
foreach (range(1, 10) as $i) {
// ...
}
fveya ($i = 0; $i < LENGTH_GOES_HERE; $i++) { ... }
veya
fveyaeach (range(0, LENGTH_GOES_HERE - 1) as $i) { ... }
, cf. range().