, . , .
if ( ! function_exists('hex2bin')) {
function hex2bin($hexstr)
{
$n = strlen($hexstr);
$sbin="";
$i=0;
while($i<$n)
{
$a =substr($hexstr,$i,2);
$c = pack("H*",$a);
if ($i==0){$sbin=$c;}
else {$sbin.=$c;}
$i+=2;
}
return $sbin;
}
}
Johnson.
Setting up an important function that does the same as the new ones, if they do not exist, allows you to do your business without fear of inability. Just hide them when you have no reason to edit them, and they will not bother you either.
source
share