Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

zero padding php

$bilangan=1234; // Nilai Proses
$fzeropadded = sprintf("%07d", $bilangan);
echo "$fzeropadded "; // Hasil 0001234
Source by phpmu.com #
 
PREVIOUS NEXT
Tagged: #padding #php
ADD COMMENT
Topic
Name
5+7 =