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

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

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