Guest User

Untitled

a guest
Jul 16th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. echo "<strong>Countries:</strong>", nl2br("\n");
  3.  
  4. $countries = [
  5. 'SPAIN' => ['EUR', 'ES'],
  6. 'USA' => ['USD', 'EN'],
  7. 'ECUADOR' => ['USD', 'ES'],
  8. 'CUBA' => ['CUC', 'ES'],
  9. 'FRANCE' => ['EUR', 'FR']
  10. ];
  11.  
  12. foreach ($countries as $countryName => [$currency, $lang]) {
  13. echo "<strong>Country: </strong> $countryName, <strong>Currency: </strong> $currency, <strong>Language: </strong> $lang";
  14. echo nl2br("\n");
  15. }
Add Comment
Please, Sign In to add comment