hex2bin is a built-in function in PHP 5.4
This commit is contained in:
parent
48d2f7e07d
commit
596ed80adf
@ -223,6 +223,7 @@ function unxmlify($s) {
|
|||||||
// convenience wrapper, reverse the operation "bin2hex"
|
// convenience wrapper, reverse the operation "bin2hex"
|
||||||
|
|
||||||
|
|
||||||
|
if(! function_exists('hex2bin')) {
|
||||||
function hex2bin($s) {
|
function hex2bin($s) {
|
||||||
if(! (is_string($s) && strlen($s)))
|
if(! (is_string($s) && strlen($s)))
|
||||||
return '';
|
return '';
|
||||||
@ -232,7 +233,8 @@ function hex2bin($s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return(pack("H*",$s));
|
return(pack("H*",$s));
|
||||||
}
|
}}
|
||||||
|
|
||||||
|
|
||||||
// Automatic pagination.
|
// Automatic pagination.
|
||||||
// To use, get the count of total items.
|
// To use, get the count of total items.
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-02-26.236
|
2013-02-27.237
|
||||||
|
Reference in New Issue
Block a user