- <?php
- $a = "12345";
- $b = "123 sdf";
- echo ctype_graph($a);
- if(ctype_graph($a) == NULL) echo "a = null";
- // 1
- echo "<br>";
- echo ctype_graph($b);
- if(ctype_graph($b) == NULL) echo "b = null";
- // b = null
- ?>
--------------------------------------------------------------------------------------------
bool ctype_graph ( string $text )
5.9. 라인
$text 문자열이 모두 눈에 보이는 문자인지 확인하여 TRUE 값을 반환합니다.(1값 반환)
그 외의 문자열이 있으면 FALSE 값을 반환합니다.(NULL값 반환)
'php5 > 변수관련함수' 카테고리의 다른 글
변수 출력가능한 문자 확인 - bool ctype_print ( string $text ) (0) | 2013.12.23 |
---|---|
변수 소문자 확인 - bool ctype_lower(string text) (0) | 2013.12.23 |
변수 숫자 확인 - bool ctype_digit ( string $text ) (0) | 2013.12.23 |
변수 제어문자 확인 - bool ctype_cntrl ( string $text ) (0) | 2013.12.23 |
변수 알파벳 확인 - bool ctype_alpha ( string $text ) (0) | 2013.12.23 |