Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/02/2010, 12:27
Avatar de Willy_N
Willy_N
 
Fecha de Ingreso: diciembre-2009
Ubicación: Cádiz
Mensajes: 334
Antigüedad: 14 años, 4 meses
Puntos: 18
Respuesta: funcion eregi en oscommerce

Prueba con preg_match, así
Código PHP:
Ver original
  1. while (list($key, $value) = each($this->languages)) {
  2.           if (preg_match('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
  3.             $this->language = $this->catalog_languages[$key];
  4.             break 2;
  5.           }
  6.         }