- var_dump: documentation ( source)
- hex2bin: documentation ( source)
<?php
$value = array('8DDD9C2AD01446E390852FAC4A3BC594', '6A0957745ACE43738B8052FEA16DDF6F', 'C2121A27F0584C818B05ECF99F4AA0A5');
if (is_array($value)) {
foreach ($value as &$values) {
$values = hex2bin($values);
}
unset($values);
} else {
$value = hex2bin($value);
}
var_dump($value);