Function parseHttpAcceptLanguage
This function will parse a given HTTP Accepted language instruction (or retrieve it from $_SERVER if not provided) and will return a sorted array. For example, it will parse fr;en-us;q=0.8
Thanks to Fredbird.org for this code.
string |
$str = NULL |
optional language string |
array
|
array |