mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-08-10 03:01:01 +00:00
Глава 11: черновик
This commit is contained in:
9
arrays/foreach.php
Normal file
9
arrays/foreach.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$arr = [
|
||||
'first' => '1',
|
||||
'second' => '2',
|
||||
'third' => '3'
|
||||
];
|
||||
foreach ($arr as $index => $val) {
|
||||
echo "$index = $val <br />";
|
||||
}
|
Reference in New Issue
Block a user