is_array
is_bool
Variable handling 함수 목록
PHP Manual

# is_binary

(PHP 6 >= 6.0.0)

is_binary — Finds whether a variable is a native binary string

### 설명

bool is_binary ( mixed `$var` )

Finds whether the given variable is a native binary string.

### 인수

`var`

  The variable being evaluated.

### 반환값

Returns `TRUE` if `var` is a native binary string, `FALSE` otherwise.

### 예제

Example #1 is_binary() example

`<?php
// Declare a unicode string
$unicode = 'This is a unicode string';
// Declare a binary string using the 'b' prefix
// available as of PHP 5.2.1, but it will only have
// effect as of PHP 6.0.0
$binary = b'This is a binary string';
var_dump(is_binary($unicode), is_binary($binary));
?>`

위 예제의 출력:

    bool(false)
    bool(true)

### 참고

- is_buffer() - Finds whether a variable is a native unicode or binary string
- is_string() - 변수의 자료형이 문자열인지 확인합니다
- is_unicode() - Finds whether a variable is a unicode string

is_array
is_bool
Variable handling 함수 목록
PHP Manual