soatok/left-pad

Left pad a string to a fixed length

v1.0.0 2016-04-08 19:36 UTC

This package is auto-updated.

Last update: 2024-11-25 07:33:33 UTC


README

Build Status

Left pad a string.

Usage

var_dump(left_pad('foo', 5));
# string(5) "  foo"

(By @SoatokDhole)