Created
May 9, 2019 06:33
-
-
Save itsrachelfish/a7f534a6c1437d4a607561dc88912280 to your computer and use it in GitHub Desktop.
str_pad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php > echo str_pad(6, 2, 0, STR_PAD_LEFT); | |
06 | |
php > echo str_pad(10, 2, 0, STR_PAD_LEFT); | |
10 | |
php > echo str_pad(12, 2, 0, STR_PAD_LEFT); | |
12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment