(PHP 4 >= 4.0.4, PHP 5)
ctype_cntrl — タゥク賁クサ妤ォ、ノ、ヲ、ォ、エ、ル、�
ヘソ、ィ、鬢�ソハクサ昀� text 、ホ、ケ、ル、ニ、ホハクサ妤ャタゥク賁クサ妤ヌ、「、�ォ、ノ、ヲ、ォ、エ、ル、゙、ケ。」 タゥク賁クサ妤ネ、マ。「ホ网ィ、ミ・鬣、・ユ・」。シ・ノ、茹ソ・ヨ。「・ィ・ケ・ア。シ・ラ、ハ、ノ、ヌ、ケ。」
トエ、ル、�クサ昀」
text 、ホ、ケ、ル、ニ、ホハクサ妤ャクスコ゚、ホ・愠ア。シ・�ホタゥク賁クサ妤タ、テ、ソセ�遉ヒ TRUE。「、ス、ヲ、ヌ、ハ、、セ�遉ヒ FALSE 、ヨ、キ、゙、ケ。」
ホ�1 ctype_cntrl() 、ホホ�
<?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";
}
}
?>
セ螟ホホ网ホスミホマ、マーハイシ、ネ、ハ、熙゙、ケ。」
The string 'string1' consists of all control characters. The string 'string2' does not consist of all control characters.