php - How to limit the length of the title to 20 characters? -


How to limit the title to 20 characters?

I am a newbie, thank you =)

     

Use the function of PHP:

  echo & lt; li & gt; & lt; a href =" '. $ RSS- & gt; Link [$ i]. "" Target = "_ blank" & gt; Substr ($ rss- & gt; Title [$ i], 0, 20). '& Lt; / A & gt; & Lt; / Li & gt; ';    

Comments

Popular posts from this blog

mysql - where clause in inner join query -

java - Why my included JSP file won't get processed correctly? -

php - MySQL Query for Advanced Search multiple criteria -