title: How to make a single/double legthed string to minmum of five character legthed in php?
body: <p>For my site, I need to do the following</p>
  
  <pre><code>$value = "1|22";    
  $explode = explode("|",$value);    
  $a = $explode[0];    
  $b = $explode[1]; 
  </code></pre>
  
  <p>This will return a and b as 1 and 22 as expected. But I need them to return $a as 00001 and $b as 00022. So if they contain less than 5 characters, I want to add 0 as prefix to it to make it a five-digit number. How can I do that?</p>