DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
fill zero on php
$number
=
12
;
$width
=
4
;
$padded
=
str_pad
(
(
string
)
$number
,
$width
,
"0"
,
STR_PAD_LEFT
)
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#fill
#php
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit