Convert decimal to hex using PHP -
How to convert the decimal value into hex using PHP?
December: I like Hex: This gives me the output: output me Something like For 68-55- 230-06-04-89
hex value this way
44-37-E0-06 should -04-59 but instead its display
44-37-E0-6-4-59
$ per echo $ test = dechex (68) .. "-" dechex (55) "-" dechex (230) "-" dechex (06) "-" dechex (04) "-" dechex (89) ........
44-37-E0-6-4-59 // without 06-04
44-37-E0-06-04-59
44-37-E0-06-04-59 just add
0 ,
sprintf ('% 02x -% 02X -% 02X-% 02X-% 02X-% 02X ', 68, 55, 230, 06, 04, 89);
Comments
Post a Comment