Zeropad A Number
Join the DZone community and get the full member experience.
Join For FreePads a string with 0's until the given length limit is met
= $limit) ? $number : zeropad("0" . $number, $limit);
}
?>
Opinions expressed by DZone contributors are their own.
Comments