PHP: ctype_upper - Manual in Deutsh
PHP: ctype_upper - Manual in French
PHP: ctype_upper - Manual in Polish

You Are At PHP: ctype_upper - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

ctype_upper

(PHP 4 >= 4.0.4, PHP 5)

ctype_upper -- Check for uppercase character(s)

Description

bool ctype_upper ( string text )

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

Parameters

text

The tested string.

Return Values

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

Examples

Example 1. A ctype_upper() example (using the default locale)

<?php
$strings
= array('AKLWC139', 'LMNSDO', 'akwSKWsm');
foreach (
$strings as $testcase) {
    if (
ctype_upper($testcase)) {
        echo
"The string $testcase consists of all uppercase letters.\n";
    } else {
        echo
"The string $testcase does not consist of all uppercase letters.\n";
    }
}
?>

The above example will output:

The string AKLWC139 does not consist of all uppercase letters.
The string LMNSDO consists of all uppercase letters.
The string akwSKWsm does not consist of all uppercase letters.

See Also

ctype_alpha()
ctype_lower()
setlocale()

bes
super efektowne kasetony reklamowe najlepsza reklama dla Ciebie
Super norma expert Norma expert dla ciebie
wydruki duży format duży format lublin skanowanie dokumentacji duży A0
plakaty duży format plakaty lublin duży format plakatay A0,A1,A2,A

Another Useful functions:


ref.ctype | function.domdocument-doctype | function.ctype-xdigit | function.ctype-upper | function.ctype-space | function.ctype-punct | function.ctype-print | function.ctype-lower | function.ctype-graph | function.ctype-digit | function.ctype-cntrl | function.ctype-alpha | function.ctype-alnum |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.