accept_lang([$lang = 'en'])
Parameters: |
|
---|---|
Returns: |
TRUE if provided language is accepted, FALSE if not |
Return type: |
bool |
Lets you determine if the user agent accepts a particular language. Example:
if ($this->agent->accept_lang('en')) { echo 'You accept English!'; }
Note
This method is not typically very reliable since some browsers do not provide language info, and even among those that do, it is not always accurate.
Please login to continue.