wordpress - Php function limiting the amount of passed in characters -


I have certain characters that I can fit in place, I want to display the category. So I was thinking that in a way I could limit the number of characters which can output this function.

I want to limit the output of this function:

  & lt; Php the_category (',')? & Gt; Output: WordPress, Computers, Blogging  

Something like this:

   

I'm new to PHP and WordPress, so a little guidance on how to run would be helpful.

Repeat the comment and question of Web Destory gives me suggestions:

  echo substr_replace (the_category (',') 

," ... ", 14);

I originally suggested, which did not sort out.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -