Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
IntlChar toupper() function in PHP
The IntlChar toupper()function converts the character into Unicode character uppercase.
Syntax
IntlChar::toupper (val)
Parameters
val − An integer or character encoded as a UTF-8 string.
Return
The IntlChar toupper()function returns the converted uppercase character. If the character is already in uppercase, the same character is returned.
Example
The following is an example −
<?php
var_dump(IntlChar::toupper("j"));
echo "<br>";
var_dump(IntlChar::toupper("89"));
echo "<br>";
var_dump(IntlChar::toupper("J"));
echo "<br>";
var_dump(IntlChar::toupper("jkl"));
?>
Output
The following is the output −
string(1) "J" NULL string(1) "J" NULL
Advertisements
