morganestes
8/13/2013 - 4:50 PM

Add a leading zero to months 1-9 for displaying. This makes the number a string.

Add a leading zero to months 1-9 for displaying. This makes the number a string.

<?php
$month = sprintf("%02s", $month);