Join Up!
104886 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previoustrimucwordsnext
Last updated: Tue, 29 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Czech | German

ucfirst

(PHP 3, PHP 4 )

ucfirst -- Pasar a mayúsculas el primer caracter de una cadena

Descripción

string ucfirst ( string cad)

Pone en mayúsculas el primer carácter de cad si es alfabético.

Nótese que 'alfabético' está determinado por la localidad actual. Por ejemplo, en la localidad por defecto "C", los caracteres como la a con diéresis (ä) no serán convertidos.

Ejemplo 1. Ejemplo de ucfirst()

$texto = 'susanita tiene un ratón, un ratón chiquitín.';
$texto = ucfirst ($texto); // $texto vale ahora: Susanita tiene un
			// ratón, un ratón chiquitín.

Vea también strtoupper() y strtolower()

User Contributed Notes
ucfirst
add a note about notes
There are no user contributed notes for this page.
previoustrimucwordsnext
Last updated: Tue, 29 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST