[lang-ref] ( sequence_step_by_x ) ( php )
<?php
public function testSequenceStepByX(): void
{
// range(1, n, x)
$items = range(1, 6, 2);
$this->assertIsArray($items);
$this->assertSame([1, 3, 5], $items);
}
<?php
public function testSequenceStepByX(): void
{
// range(1, n, x)
$items = range(1, 6, 2);
$this->assertIsArray($items);
$this->assertSame([1, 3, 5], $items);
}