Since the general $trim() function performs internal trimming, which can be problematic in some cases, there needs to be a safe way to trim the edges only, without affecting internal whitespace. Exposing explicit left-only and right-only trimming functions should be enough for these cases.
Since the general $trim() function performs internal trimming, which can be problematic in some cases, there needs to be a safe way to trim the edges only, without affecting internal whitespace. Exposing explicit left-only and right-only trimming functions should be enough for these cases.