Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

php array and foreach loop

$
0
0

I have this array:

 

 
<?php
$continents=array("Asia"=>array("Bangladesh","India","Pakistan"),
                             "Europe"=>array("England","France"),
                             "Africa"=>array("Kenya","Libya","Somalia"));
?>
 
Now I would like to echo:
In Africa there are: Kenya, Libya, Somalia.
 
How can I do that? Can anyone please help me? Thanks in advance.

Viewing all articles
Browse latest Browse all 13200

Trending Articles