blob: 8f3437d5e5dd6af4bf54542775e5a931b2218e28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
hex2bin(); function test
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--FILE--
<?php
var_dump(bin2hex(hex2bin('012345')) == '012345');
var_dump(bin2hex(hex2bin('abc123')) == 'abc123');
var_dump(bin2hex(hex2bin('123abc')) == '123abc');
var_dump(bin2hex(hex2bin('FFFFFF')) == 'ffffff');
?>
--EXPECTF--
bool(true)
bool(true)
bool(true)
bool(true)
|