Last active
August 9, 2022 19:25
-
-
Save mikemix/a05eb72b5372b9ea3b8242d29cfb7f39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$workers = [ | |
['id' => 1, 'name' => 'John Doe'], | |
['id' => 3, 'name' => 'Jane Doe'], | |
['id' => 4, 'name' => 'Monica Trullo'], | |
['id' => 5, 'name' => 'Jonathan Bank'], | |
]; | |
foreach ($workers as $worker) { | |
$workerId = $worker['id']; | |
$workerName = $worker['name']; | |
// … | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment