Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $identifiers = [
- ['contact', 1],
- ['company', 2],
- ['contact', 4],
- ['company', 3]
- ];
- foreach ($identifiers as list($type, $id)) {
- echo ucfirst($type) . ' - ' . $id . "\n";
- }
- ?>
- Outputs:
- Contact - 1
- Company - 2
- Contact - 4
- Company - 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement