Skip to content

BoatraceVentureProject/Trimmer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trimmer in the Boatrace Venture Project

Build Status Coverage Status Latest Stable Version Latest Unstable Version License

Installation

composer require bvp/trimmer

Usage

<?php

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

use Boatrace\Venture\Project\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

Trimmer in the Boatrace Venture Project is open source software licensed under the MIT license.