Ctype エリソ�
PHP Manual

ctype_print

(PHP 4 >= 4.0.4, PHP 5)

ctype_printー嵂トヌス、ハハクサ妤ォ、ノ、ヲ、ォ、エ、ル、�

タ篶タ

bool ctype_print ( string $text )

ヘソ、ィ、鬢�ソハクサ昀� text 、ホ、ケ、ル、ニ、ホハクサ妤ャ ー嵂トヌス、ハハクサ妤ヌ、「、�ォ、ノ、ヲ、ォ、エ、ル、゙、ケ。」

・ム・鬣癸シ・ソ

text

トエ、ル、�クサ昀」

ハヨ、�ヘ

text 、ホ、ケ、ル、ニ、ホハクサ妤ャ。ハカ゙、皃ニ。ヒシツコン、ヒ スミホマ、ヤ、ヲセ�遉ヒ TRUE 。「text 、ヒタゥク賁クサ� 、゙、ソ、マ、゙、テ、ソ、ッスミホマ、簑ゥク讀篁ヤ、�ハ、、ハクサ妤ャエ゙、゙、���遉ヒ FALSE 、ヨ、キ、゙、ケ。」

ホ�

ホ�1 ctype_print() 、ホホ�

<?php
$strings 
= array('string1' => "asdf\n\r\t"'string2' => 'arf12''string3' => 'LKA#@%.54');
foreach (
$strings as $name => $testcase) {
    if (
ctype_print($testcase)) {
        echo 
"The string '$name' consists of all printable characters.\n";
    } else {
        echo 
"The string '$name' does not consist of all printable characters.\n";
    }
}
?>

セ螟ホホ网ホスミホマ、マーハイシ、ネ、ハ、熙゙、ケ。」

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

サイケヘ


Ctype エリソ�
PHP Manual