Core Function
View Source on Trac ↗ zeroise()
zeroise( mixed $number, mixed $threshold ) Add leading zeros when necessary.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $number int | Number to append zeros to if not greater than threshold. Required |
| $threshold int | Digit places number needs to be to not have zeros added. Required |
Return Value
(string)
Adds leading zeros to number if needed.
Function Information
Since Version
0.71
Source File
wp-includes/formatting.php
Advertisement