Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Strip whitespace (or other characters) from the end of a string
Alias chop
rtrim(string $stringstring $characters " \n\r\t\v\x00"): string
        $format .= $i->|| $i->|| $i->|| $i->'%H:%I:'.self::formatSeconds($i->ssubstr($i->f2)) : '';

        
$format '%R ' === $format '0s' $format;



        return 
$i->format(rtrim($format));

    }



    public static function 
castTimeZone(\DateTimeZone $timeZone, array $aStub $stubbool $isNestedint $filter)
    private static function formatSeconds(string $sstring $us): string

    
{

        return 
sprintf('%02d.%s'$s=== ($len \strlen($t rtrim($us'0'))) ? '0' : ($len <= str_pad($t3'0') : $us));

    }

}
            $this->lastIdentifier $request['identifier'];

            
$section sprintf('%s %s'$request['method'], $request['uri']);

            if (
$controller $request['controller']) {

                
$rows[] = ['controller'rtrim($this->dumper->dump($controllertrue), "\n")];

            }

        } elseif (isset(
$context['cli'])) {

            
$this->lastIdentifier $context['cli']['identifier'];
            return null;

        }



        return 
rtrim($dumper->dump($datatrue));

    }



    private function 
prepareExpectation($expectedint $filter): string
            $expected $this->getDump($expectednull$filter);

        }



        return 
rtrim($expected);

    }

}