PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
Zakłady sportowe online - Mieszkania w Lublinie - kreacja witryn internetowych - grunty - fotografia ślubna - tanie latanie


ctype_cntrl

ctype_cntrl

(PHP 4 >= 4.0.4, PHP 5)

ctype_cntrl -- Check for control character(s)

Opis

bool ctype_cntrl ( string text )

Checks if all of the characters in the provided string, text, are control characters. Control characters are e.g. line feed, tab, escape.

Parametry

text

The tested string.

Zwracane wartości

Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.

Przykłady

Przykład 1. A ctype_cntrl() example

<?php
$strings
= array('string1' => "\n\r\t", 'string2' => 'arf12');
foreach (
$strings as $name => $testcase) {
    if (
ctype_cntrl($testcase)) {
        echo
"The string '$name' consists of all control characters.\n";
    } else {
        echo
"The string '$name' does not consist of all control characters.\n";
    }
}
?>

Powyższy przykład wyświetli:

The string 'string1' consists of all control characters.
The string 'string2' does not consist of all control characters.

Patrz także

ctype_print()

Limo and Car services limousine service Airport chicago 773-649-9630 - darmowe galerie - oglądam filmy blu-ray filmy hd - hacking - anteny - Limo and Car services limousine chicago il 773-649-9630 - statusy do gg - odzyskiwanie danych Wrocław - pozycjonowanie i optymalizacja - Pozycjonowanie stron - odzyskiwanie danych Katowice - własne forum - darmowy hosting - pozycjonowanie stron bielsko-biała - Słownik kompow

G:3,M:0,Y:33