Bitrix Site Manager

ToUpper

string
ToUpper(
  string text
)

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

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

Parameters

ParameterDescription
text Source string.

See Also

Example



<?
$upper = ToUpper("абвгд abcdef");
echo "Upper case: ".$upper;
// prints "Upper case: АБВГД ABCDEF"
?>