Join Up!
104855 members and counting!

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

strtoupper

(PHP 3, PHP 4 )

strtoupper -- Pasa a mayúsculas una cadena

Descripción

string strtoupper ( string cadena)

Devuelve la cadena con todas sus letras en mayúsculas.

Nótese que las letras son definidad por el locale actual. Esto quiere decir que, por ejemplo, en el locale por defecto ("C"), los caracteres como la ñ no serán convertidos.

Ejemplo 1. Ejemplo de strtoupper()

$cad = "María Tenía Un Corderito al que QUERÍA Mucho";
$cad = strtoupper ($cad);       
print $cad; # Visuaiza MARíA TENíA UN CORDERITO AL QUE QUERÍA MUCHO

Vea también strtolower() and ucfirst().

User Contributed Notes
strtoupper
add a note about notes
There are no user contributed notes for this page.
previousstrtolowerstrtrnext
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