(PHP 4 >= 4.0.4, PHP 5)
ctype_print — ー嵂トヌス、ハハクサ妤ォ、ノ、ヲ、ォ、エ、ル、�
ヘソ、ィ、鬢�ソハクサ昀� 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.