php - How the first word of the sentence to put in the span -


i use laravel blade. not know how first word record.title put in span. know , can me? edit: forgot important thing. htm page cms october

<h2><span>the</span> {{ record.title }}</h2> 

october cms using twig template engine. can in template:

{{ record.title | split(' ')[0] }} // rest of string  {{ record.title[1:] }} 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -