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

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

c# - read full xml file data over tcp -

Eclipse and GWT -