You are here : phpstringstrtoupper

strtoupper() - string

Returns string with all alphabetic characters
   converted to uppercase.
Parameters :
  • string - The input string.

  • Syntax

    string strtoupper
        ( string $string
       )


    Example

    <?php$str = "Mary Had A Little Lamb and She LOVED It So";$str = strtoupper($str);echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference