library leftpad
There just should be a leftpad function for PHP
alexsoft/leftpad
There just should be a leftpad function for PHP
- Sunday, October 8, 2017
- by alexsoft
- Repository
- 1 Watchers
- 2 Stars
- 25 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 4 Versions
- 0 % Grown
Left Pad for PHP
, (*1)
A whole package is just one file with a single function \Alexsoft\Leftpad\leftpad(string $string, int $length, string $filler): string
, (*2)
$string - your initial string
$length - final length of returned string
$filler - symbol with which initial string should be left padded
1. Install
composer require alexsoft/leftpad
2. Use it
\Alexsoft\Leftpad\leftpad('foo', 5) // => " foo"
\Alexsoft\Leftpad\leftpad('1', 3, '0') // => "001"
dev-master
9999999-dev
There just should be a leftpad function for PHP
Sources
Download
MIT
The Requires
The Development Requires
v1.0.2
1.0.2.0
There just should be a leftpad function for PHP
Sources
Download
MIT
The Requires
The Development Requires
v1.0.1
1.0.1.0
There just should be a leftpad function for PHP
Sources
Download
MIT
The Requires
The Development Requires
v1.0.0
1.0.0.0
There just should be a leftpad function for PHP
Sources
Download
MIT
The Development Requires