i used bin2hex some code and get code
i also used hex2bin but when i used array error show
how can used hex2bin in array
for example
$str = '"C"=>"cccccccccccc"';
$getcodebin = bin2hex($str);
result this
2243223d3e2263636363636363636363636322
i used this code
$arraycode = hex2bin($getcodebin);
$findresult = "C";
$arr = array($arraycode);
echo $arr[$findresult]."<br>";
but when run this code on browser error show
Undefined index: C in
how can used and get result help me