Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/08/2009, 20:08
Avatar de bioxido
bioxido
 
Fecha de Ingreso: diciembre-2008
Ubicación: $_SERVER['PHP_SELF']
Mensajes: 601
Antigüedad: 15 años, 5 meses
Puntos: 21
Respuesta: Primera Letra

Yo lo hago asi:

Código PHP:
function valueStr($cadena,$str){
if (
$str == substr($cadena,0,1)){  //Diferencia entre mayusculas y minusculas.
return true;

else
{
return 
false;
}