(PHP 4 >= 4.0.4, PHP 5, PHP 7)
ctype_space — ���հ��ַ����
text
��Ҫ�����Ե��ַ�����
��� text
�����ÿ���ַ����ձ�ʵ�������ʱ����ij����ʽ�Ŀհף��ͷ��� TRUE
������ FALSE
��
���˿հ��ַ�����������������ֱ�Ʊ�������з����س��ͻ�ҳ�ַ���
Example #1 һ�� ctype_space() ����
<?php
$strings = array('string1' => "\n\r\t", 'string2' => "\narf12", 'string3' => '\n\r\t');
foreach ($strings as $name => $testcase) {
if (ctype_space($testcase)) {
echo "The string '$name' consists of all whitespace characters.\n";
} else {
echo "The string '$name' does not consist of all whitespace characters.\n";
}
}
?>
�������̻������
The string 'string1' consists of all whitespace characters. The string 'string2' does not consist of all whitespace characters. The string 'string3' does not consist of all whitespace characters.
Note:
�������һ�� -128 �� 255 ֮��(��)������, ���ᱻ����Ϊ��ֵ��Ӧ��ASCII�ַ� (��ֵ������ 256 ��֧����չASCII�ַ�). �����������ᱻ����Ϊ��ֵ��Ӧ��ʮ�����ַ���.