UTF::ltrim PHP Method

ltrim() public method

Strip whitespaces from the beginning of a string
public ltrim ( $str ) : string
$str string
return string
    function ltrim($str)
    {
        return preg_replace('/^[\\pZ\\pC]+/u', '', $str);
    }