PHP | Write Program Using Repetition To Display Capital Value Of Each Country



PHP | Write Program Using Repetition To Display Capital Value Of Each Country

PHP | Write Program Using Repetition To Display Capital Value Of Each Country

@tech_gyans

Define an array variable as follows:
$capitals = array(‘USA’ = “Washington”,
‘Great Britain’ = “London”,
‘New Zealand’ = “Wellington”,
‘Australia’ = “Canberra”,
‘Italy’ = “Rome”,
‘Canada’ = “Ottawa”);

Write a program using repetition (loop) to display the capital values of each country, every country, as follows.
Capital of USA is Washington.

Code Link – https://github.com/ramsharma12345/moodle_tutorial/blob/main/p3.php

Thank you for watching!
Kindly consider hitting the subscribe button!