Глава 38: черновик

This commit is contained in:
Igor Simdyanov
2022-05-28 19:34:20 +03:00
parent 9da56eb2db
commit c9f87154b0
22 changed files with 381 additions and 9 deletions

View File

@ -0,0 +1,14 @@
<?php
spl_autoload_register();
$array = ['первый',
'второй',
'третий',
'четвертый',
'пятый'];
$collection = new Iterators\MyIterator($array);
foreach($collection as $key => $value) {
echo "Элемент с индексом $key и значением $value<br />";
}