is_unicode
(PHP 6 >= 6.0.0)
is_unicode — Finds whether a variable is a unicode string
인수
- var
-
The variable being evaluated.
반환값
Returns TRUE if var is a unicode string, FALSE otherwise.
예제
Example #1 is_unicode() example
<?php
// Declare a unicode string
$unicode = 'This is a unicode string';
// Declare a binary string
$binary = b'This is a binary string';
var_dump(is_unicode($unicode), is_unicode($binary));
?>
위 예제의 출력:
bool(true) bool(false)
참고
- is_binary() - Finds whether a variable is a native binary string
- is_buffer() - Finds whether a variable is a native unicode or binary string
- is_string() - 변수의 자료형이 문자열인지 확인합니다
- unicode_encode() - Convert a unicode string in any encoding
is_unicode
There are no user contributed notes for this page.
