<? PHP # the PHP fixed number of leading zeros digital complement 0 $ NUM = 128 ; $ NUM = str_pad ( $ NUM ,. 8, "0", STR_PAD_LEFT); echo $ NUM ; // Output: 0128 ?>
<? PHP # the PHP fixed number of leading zeros digital complement 0 $ NUM = 128 ; $ NUM = str_pad ( $ NUM ,. 8, "0", STR_PAD_LEFT); echo $ NUM ; // Output: 0128 ?>