2011-12-18 5 views
0

PHP로 숫자를 두 자리 숫자로 배열하려면 어떻게해야합니까? (앞에 오는 0 포함)?php 서식 지정 번호

+0

[PHP의 숫자 문자열 번호] (http://stackoverflow.com/questions/3963271/string-numbers-into-number-numbers-in-php) – deceze

답변

3
echo sprintf("%02d", $en['num_pictures']);