Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/01/2009, 19:29
mariano_donati
 
Fecha de Ingreso: marzo-2005
Mensajes: 1.418
Antigüedad: 19 años, 1 mes
Puntos: 9
Respuesta: Saber si un token es un caracter

De esta forma pude solucionarlo:

Código php:
Ver original
  1. function isChar($char)
  2. {
  3.     $tomatch = "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ";
  4.     return (preg_match('/[a-zA-Z]/',$char)) ||(strpos($tomatch, $char) !== false);
  5. }
__________________
Add, never Remove