[lang-ref] ( array_foreach ) ( php )

<?php
public function testArrayForeach(): void
{
	// foreach ($items as $item)
	$items = ['A', 'B', 'C', 'D', 'E'];

	$r = '';
	foreach ($items as $item) {
		$r .= $item;
	}

	$this->assertSame('ABCDE', $r);
}