$continents = array("Asia" => array("Bangladesh" => "1", "India" => "2", "Pakistan" => "3"));

এইটা কিভাবে লুপের মাধ্যমে প্রিন্ট করবো?

asked 10 Aug '17, 05:58

_Shaon_'s gravatar image

_Shaon_
758214


foreach ($continents as $key => $values) {
    foreach ($values as $countryName => $val) {
        echo $key. ' country: '.$countryName.' value:'.$val.'<br>';
    }
}
permanent link

answered 11 Aug '17, 04:32

Imon%20Hossain's gravatar image

Imon Hossain
634111

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×52
×3
×1

question asked: 10 Aug '17, 05:58

question was seen: 249 times

last updated: 11 Aug '17, 04:32