Jump to content

hexadecimal value calculate


maerco

Recommended Posts

I want to obtain the same result of first code also for the second code, someone can give me directions?

 

$CODE = "\x00\x23\x8E\x01\x02\x03";

echo code

 

// result: #Ž  1

 

$CODE="00238E010203";

$CODE=chunk_split($MAC,2,"\x");

$CODE= "\x" . substr($MAC,0,-2);

 

echo $CODE;

 

// result \x00\x23\x8E\x01\x02\x03

Link to comment
https://forums.phpfreaks.com/topic/208549-hexadecimal-value-calculate/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.