StringTrim

Introduction #

StringTrim is a process to trim letters from your string values' beginning and ending.

Example #

<?php
class MyReport extends \koolreport\KoolReport
{
    public function setup()
    {
        ...
        ->pipe(new \koolreport\processes\StringTrim(array(
            "productName",
            "character_mask" => "\t\n\r19"
        )))
        ...
    }
}

Code explanation:

In the above example, we trim the "productName" column's values with letters defined in "character_mask". If not defined, "character_mask" means blank character trimming.

Get started with KoolReport

KoolReport will help you to construct good php data report by gathering your data from multiple sources, transforming them into valuable insights, and finally visualizing them in stunning charts and graphs.