php数字补零

echo sprintf("%03d", 1); //output: 001
posted @ 2012-06-26 09:44  呆头鱼  阅读(183)  评论(0编辑  收藏  举报