update : 2015.11.03
php.shukuma.com검색:
|
hex2bin(PHP >= 5.4.0) hex2bin — Decodes a hexadecimally encoded binary string 설명
string hex2bin
( string
$data
)Decodes a hexadecimally encoded binary string. Caution
This function does NOT convert a hexadecimal number to a binary number. This can be done using the base_convert() function. 인수
반환값
Returns the binary representation of the given data 실패 시 오류/예외
If the hexadecimal input string is of odd length or invalid hexadecimal string
an 변경점
예제Example #1 hex2bin() example
<?php 위 예제의 출력 예시: string(16) "example hex data" |