Get a Demo
Table of contents

ltrim

The ltrim filter trims the beginning of a string for whitespace or a specific character.

This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{{ string|ltrim }}

{# Remove a starting "/" at the beginning of the string #}
{{ string|ltrim('/') }}

Arguments Link

The ltrim filter has the following signature.

ltrim(characters)
Get Started With Aptuitiv