Outputting Using array_values() and array_keys() for Backward Compatibility
<?
$countries_languages = array('Germany' => 'German', 'France' => 'French', 'Spain' => 'Spanish');
printf("<p>Languages: %s.</p>\n",
implode(', ', array_values($countries_languages)) );
printf("<p>Countries: %s.</p>\n",
implode(', ', array_keys($countries_languages)) );
?>
Related examples in the same category