charactermask : The characters to strip side : The default is to strip from the. You also learned about whitespace characters, and you saw how to specify your own list of whitespace characters when trimming. Internally, Twig uses the PHP trim, ltrim, and rtrim functions. In this article you’ve looked at PHP’s trim(), ltrim() and rtrim() functions for removing unwanted characters around a string. Rtrim() in particular is handy for stripping end-of-line characters from a string that was read from a file: Here are a couple of examples using ltrim() and rtrim():
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |