The Boatrace Ninja Trimmer.

1.0.4 2024-11-02 06:35 UTC

This package is auto-updated.

Last update: 2024-11-02 06:36:34 UTC


README

Latest Stable Version Latest Unstable Version License

Installation

$ composer require boatrace-ninja/trimmer

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Boatrace\Ninja\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 Ninja Trimmer is open source software licensed under the MIT license.