Data Type Php







  $countries = array( 'USA' => 'English', 'Spain' => 'Spanish',
                      'France' => 'French', 'Argentina' => 'Spanish');
  $languages = array_values($countries);
  $language_count = array();
  foreach($languages as $language)
    if(!isset($language_count[$language]))
      $language_count[$language] = 1;
    else
      $language_count[$language]++;
?>
  
    
      
  foreach($language_count as $language => $number)
    print "\n";
?>
    
  
LanguageNumberofCountries
$language$number