php man page for mb_strtoupper

Query: mb_strtoupper

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MB_STRTOUPPER(3)							 1							  MB_STRTOUPPER(3)

mb_strtoupper - Make a string uppercase

SYNOPSIS
string mb_strtoupper (string $str, [string $encoding = mb_internal_encoding()])
DESCRIPTION
Returns $str with all alphabetic characters converted to uppercase.
PARAMETERS
o $str - The string being uppercased. o $encoding -The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
RETURN VALUES
$str with all alphabetic characters converted to uppercase.
UNICODE
For more information about the Unicode properties, please see http://www.unicode.org/unicode/reports/tr21/. By contrast to strtoupper(3), 'alphabetic' is determined by the Unicode character properties. Thus the behaviour of this function is not affected by locale settings and it can convert any characters that have 'alphabetic' property, such as a-umlaut (a).
EXAMPLES
Example #1 mb_strtoupper(3) example <?php $str = "Mary Had A Little Lamb and She LOVED It So"; $str = mb_strtoupper($str); echo $str; // Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO ?> Example #2 mb_strtoupper(3) example with non-Latin UTF-8 text <?php $str = "Txiotn a nE Baos unuvn yn, dpaokeCei unp vw0po kuvs"; $str = mb_strtoupper($st_, 'UTF-8'); _ _ _ _ echo $str; // Prints TXI>TH A/TTHH BAO> YHMNH | H, /PA>KE/EI YTTP NOOPO KYN> ?>
SEE ALSO
mb_strtolower(3), mb_convert_case(3), strtoupper(3). PHP Documentation Group MB_STRTOUPPER(3)
Related Man Pages
mb_convert_case(3) - php
mb_detect_encoding(3) - php
ucwords(3) - php
db2_escape_string(3) - php
mb_encode_numericentity(3) - php
Similar Topics in the Unix Linux Community
if condition
add not equal in script.
help me! how to solve this question?
Uppercase word in PERL
How to uppercase matching line when string found?