How to get the first or last element of an array split by the `split` filter?
When managing content in AnQi CMS, we often encounter the need to process some text information stored in a specific format.For example, the keywords of an article are usually stored in a field in the form of a comma-separated string, such as 'AnQi CMS, content operation, template making'.When we want to highlight the most important keyword on the website front end, such as an article list or detail page, or to obtain the last keyword as a hint, we need to split these strings and extract the specific elements.