0

I have a variable that will store a twitter account @twitteruser. I need to strip the @ from the variable so that I can create a button link going to their twitter account.

2 Answers2

2

If you know the character is the first char, use ltrim. I guess str_replace will search the entire string ;)

{$twitterUser|ltrim:'@'}
Juanga Covas
  • 315
  • 2
  • 5
1
{$twitterUser|replace:'@':''|escape:'htmlall':'UTF-8'}