wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
zeroise › WordPress Function
Seit0.71
Veraltetn/v
› zeroise ( $number, $threshold )
Parameter: (2) |
|
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Add leading zeros when necessary.
If you set the threshold to '4' and the number is '10', then you will get back '0010'. If you set the threshold to '4' and the number is '5000', then you will get back '5000'. Uses sprintf to append the amount of zeros based on the $threshold parameter and the size of the number. If the number is large enough, then no zeros will be appended.