prefill_zeros

prefill_zeros($text, $len, $zero = "0", $before = true)

  • $text: start text.
  • $len: target lenght for the result.
  • $zero: character to use for fill.
  • $before: true: add characters before start text, false: add after.

Fills the start text with specified characters up to the specified length.

Comments

Leave a Reply