title: Convert decimal to hex using PHP
body: <p>How to convert decimal value to hex using php?</p>
  
  <p>Dec : <code>68-55-230-06-04-89</code></p>
  
  <p>I want <code>hex value</code> like this</p>
  
  <p>Hex : <code>44-37-E0-06-04-59</code>  but instead of this its display <code>44-37-E0-6-4-59</code> </p>
  
  <pre><code>echo $test = dechex(68)."-".dechex(55)."-".dechex(230)."-".dechex(06)."-".dechex(04)."-".dechex(89);
  </code></pre>
  
  <p>It's give me output : <code>44-37-E0-6-4-59</code> // without 06-04</p>
  
  <p>I want output something like <code>44-37-E0-06-04-59</code></p>