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

i google and and got this function...

function hexToStr($hex)
    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 "

kingly guide me little bit

Recommended Answers

All 2 Replies

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.