Usage_Reports::leading_zeros( mixed $value, mixed $length = 2 )

leading_zeros


Parameters Parameters

$value

(Required)

$length

(Optional)

Default value: 2


Top ↑

Return Return

(void)


Source Source

File: src/core/classes/class-usage-reports.php

	public function leading_zeros( $value, $length = 2 ) {
		return str_pad( $value, $length, '0', STR_PAD_LEFT );
	}