Home > PHP > Function > Ctype > ctype_upper()

ctype_upper()

ctype_upper - Check for uppercase character(s)

Syntax

bool ctype_upper (string $text)

Arguments

  • text - The tested string.

Description

Checks if all of the characters in the provided string, text, are uppercase characters.

Version

PHP 4.0.4, 5

Return value

Returns TRUE if every character in text is an uppercase letter in the current locale.