array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.strtoupper.php', 1 => 'strtoupper', ), 'up' => array ( 0 => 'ref.strings.php', 1 => 'Funciones de strings', ), 'prev' => array ( 0 => 'function.strtolower.php', 1 => 'strtolower', ), 'next' => array ( 0 => 'function.strtr.php', 1 => 'strtr', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/strings/functions/strtoupper.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
strtoupper — Convierte un string a mayúsculas
Devuelve el string
con todos los caracteres alfabéticos
convertidos a mayúsculas.
Notar que ser 'alfabético' está determinado por la configuración regional actual. Por ejemplo, en la configuración regional por defecto "C" caracteres como la diéresis-a (ä) no se convertirán.
string
El string de entrada.
Devuelve el string en mayúsculas.
Ejemplo #1 Ejemplo de strtoupper()
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // muestra: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
?>
Nota: Esta función es segura binariamente.