i want to convert hexa to string in php...

i google and and got this function...

function hexToStr($hex)
{
    
    $string='';  
    for ($i=0; $i < strlen($hex)-1; $i+=2)
    {
        $string .= chr(hexdec($hex[$i].$hex[$i+1]));
    }
    return $string;
}

it works but not in case of "
062E063506450020003500300030002E0030003000300020004B005700440020064506460020062D06330627062800200032003500380038062706440645062A06280642064A00200031002C003400320031002E0036003100320020004B005700440020062706440645062A06480641063100200031002C003400320031002E0036003100320020004B00570044
"

kingly guide me little bit

i think chr() does not support utf-16....

anybody knows which string function supports uft 16...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.