I want to find substring of the string or check if there is no such substring using Twig. On the words, I need analogue of 'strstr' or 'strpos' in php. I googled and searched this issue in stackoverflow but nothing found. Does someone know how to solve this problem?
来源:https://stackoverflow.com/questions/13007288/find-substring-in-the-string-in-twig