Return to Snippet

Revision: 8113
at September 3, 2008 11:41 by plasticated


Initial Code
$padded_num = str_pad($num, 2, 0, STR_PAD_LEFT);

Initial URL

                                

Initial Description

                                

Initial Title
PHP: Pad single digit number to 2.

Initial Tags
php, number, textmate

Initial Language
PHP