Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $items = [
- ['field' => 'field1', 'values' => [0, 1, 2, 3, 4]],
- ['field' => 'field2', 'values' => ['cat', 'dog', 'horse']]
- ];
- foreach ($items as list('field' => $field, 'values' => $values)) {
- // can use $field and $values here now!
- }
Add Comment
Please, Sign In to add comment