Documentation

ToUpper

string
ToUpper(
  string text,
 string lang = false
);

The function converts characters of the original string to uppercase. In addition to characters of other charsets, this function correctly converts Cyrillic characters to uppercase.

Note. This function can be used when the standard PHP function strtoupper cannot convert Cyrillic characters. Sometimes it takes place on some hostings.

Function parameters

ParameterDescription Available from version
text Source string.
lang Language ID.

See Also

Examples of use

<?
$upper = ToUpper("abcdef");
echo "Upper case: ".$upper;
// print the string "Upper case: ABCDEF"
?>


© «Bitrix24», 2001-2024