/ Published in: PHP

Just provide $availableLanguages as an array('en', 'de', 'es')
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function get_client_language($availableLanguages, $default='en'){ //start going through each one foreach ($langs as $value){ return $choice; } } } return $default; }
URL: php-detect-browser-language
Comments
