note 96540 modified in function.gettext by danbrown

From: Date: Thu, 04 Mar 2010 15:17:59 +0000
Subject: note 96540 modified in function.gettext by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166658@lists.php.net to get a copy of this message
As of php 5.3, you can use the following code to get the preferred locale of the http agent. <?php $locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); ?> --was-- As of php 5.3, you can use the following code to get the preferred locale of the http agent. $locale = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']); http://php.net/manual/en/function.gettext.php

« previous php.notes (#166658) next »