title: BIN2HEX & HEX2BIN Convesion in PHP
body: <p>I want to convert 48 bit binary number (in string format) to HEX (12 char long). And same thing in reverse manner.<br><br>
  E.g 
  <br></p>
  
  <ul>
  <li>binary '000000000000000000000000000000000000000000000000' into hex '00000000000'</li>
  <li>binary '111111111111111111111111111111111111111111111111' into hex 'FFFFFFFFFFFF'</li>
  <li>hex 'FFFFFFFFFFFF' into binary '111111111111111111111111111111111111111111111111'</li>
  <li>hex '00000000000' into binary '000000000000000000000000000000000000000000000000'</li>
  </ul>
  
  <p><br>
  Tried the default bin2hex(), dechex(bindec($binary)), etc.
  <br><br>
  I am a newbie so please explain in detail.</p>