How to remove the first word away in Smarty from a string, that looks like:
$variable = "Word Quick brown fox";
And make it look like this afterwards on the output:
$variable = "Quick brown fox";
Is there a way to do this without modifiers? I know you can make custom modifier and then use $variable|customModifier and get what you want but I thought maybe there is already inbuilt solution for that?
As Tyler points out, this should be done in your business logic, like so:
explode()on a space to create an array of wordsarray_shift()(corresponding to the first word in the sentence)implode()Here is an example: