How do I convert a string the looks like a hex number to an actual hex number in php?
Posted
by TheGNUGuy
on Stack Overflow
See other posts from Stack Overflow
or by TheGNUGuy
Published on 2010-05-19T14:43:39Z
Indexed on
2010/05/19
14:50 UTC
Read the original article
Hit count: 210
Hey everyone,
I have a string that looks like this "7a" and I want to convert it to the hex number 7A. I have tried using pack and unpack but that is giving me the hex representation for each individual character. I'm out of ideas and don't know where to go from here.
Thanks for the help!
© Stack Overflow or respective owner