boatrace-sakura / trimmer
The Boatrace Sakura Trimmer.
2.0.3
2024-10-27 10:32 UTC
Requires
- php: ^8.0
- php-di/php-di: ^6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Installation
composer require boatrace-sakura/trimmer
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use Boatrace\Sakura\Trimmer; var_dump(Trimmer::trim(null)); // NULL var_dump(Trimmer::trim(' 競艇 ')); // string(6) "競艇" var_dump(Trimmer::ltrim(null)); // NULL var_dump(Trimmer::ltrim(' 競艇 ')); // string(7) "競艇 " var_dump(Trimmer::rtrim(null)); // NULL var_dump(Trimmer::rtrim(' 競艇 ')); // string(7) " 競艇"
License
The Boatrace Sakura Trimmer is open source software licensed under the MIT license.