
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
intlchar_isUppercase Function in PHP
The IntlChar::isUUppercase() function checks whether the given input character is an Uppercase Unicode character or not.
Syntax
IntlChar::isUUppercase(val)
Parameters
val − It is a character value, which is encoded as a UTF-8 string.
Return
The IntlChar::isUUppercase() function returns TRUE if the val is an Uppercase Unicode character or not.
Example
The following is an example −
<?php var_dump(IntlChar::isUUppercase("2")); echo "<br>"; var_dump(IntlChar::isUUppercase("Jack")); echo "<br>"; var_dump(IntlChar::isUUppercase("K")); ?>
Output
The following is the output −
bool(false) NULL bool(true)
Example
Let us see another example −
<?php var_dump(IntlChar::isUUppercase("*")); echo "<br>"; var_dump(IntlChar::isUUppercase("n")); echo "<br>"; var_dump(IntlChar::isUUppercase("D")); ?>
Output
The following is the output −
bool(false) bool(false) bool(true)
Advertisements