# We set the variables to NULL so that the script will detect the language
# NOTE : this requires "Version 2" of the script!
$knownlangs = NULL;
$deflang = NULL;
# Detect the language
include('languagedetection.php');
# Output the script result
echo "Your browser gave us this string to work with : $lclist
\n";
if($lang != NULL)
{
if($country)
echo "The detected language : $lang with quality $quality and the country code is $country. ($lctag)
\n";
else
echo "The detected language : $lang with quality $quality and no country is set. ($lctag)
\n";
}
else
{
echo "Your browser doesn't support any language that this script knows.
\n";
echo "This script knows the following languages : ";
while(list($key, $val) = each($knownlangs))
{
echo "$val ";
}
echo "\n";
}
?>