1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 08:42:29 +01:00
Files
archived-php-src/ext/standard/tests/strings/hex2bin_basic.phpt
2015-06-29 23:10:50 +02:00

19 lines
361 B
PHP

--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)