alexsoft/leftpad
Composer 安装命令:
composer require alexsoft/leftpad
包简介
There just should be a leftpad function for PHP
关键字:
README 文档
README
A whole package is just one file with a single function \Alexsoft\Leftpad\leftpad(string $string, int $length, string $filler): string
$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"
统计信息
- 总下载量: 72
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-24