Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/12/2008, 13:34
Avatar de nicolaspar
nicolaspar
 
Fecha de Ingreso: noviembre-2004
Ubicación: Villa Ballester Bs-As|Ar
Mensajes: 2.002
Antigüedad: 19 años, 5 meses
Puntos: 34
Respuesta: ucfirst - Primera letra caracter especial

Hola el_javi, a ver si esto te ayuda:

Código PHP:
 
 
/* En tus funciones copia estas dos*/
function uc_first_aux($str){
 return 
ucfirst($str[1]);
}
function 
uc_first($str){
 return 
preg_replace_callback('/(\w){1}/i',"uc_first_aux",$str,1);
}

#luego, a un string como este
$str strtolower("¿¿¡¡COMO ESTÁN USTEDES!!??");
#Lo tratas así:
echo uc_first($str); 
Saludos, contanos si te ayudo
__________________
Mi punto de partida es Que Bueno Lo Nuevo