Código PHP:
while (list($key, $value) = each($this->languages)) {
if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
$this->language = $this->catalog_languages[$key];
break 2;
}
}
Código PHP:
while (list($key, $value) = each($this->languages)) {
if (strlen(strstr($this->browser_languages[$i], '^(' . $value . ')(;q=[0-9]\\.[0-9])?$')) > 0 && isset($this->catalog_languages[$key])) {
$this->language = $this->catalog_languages[$key];
break 2;
}
}
Gracias