Page 1 of 1

Word cutoff function

Posted: Wed Mar 25, 2009 9:22 am
by Darkzaelus
Is there an inbuilt function to cut off a long piece of text after a certain amount of characters and append ... to the end of it?

Cheers,

Darkzaelus

p.s. If not I would like to write the code myself please, I prefer to work through solutions

Re: Word cutoff function

Posted: Wed Mar 25, 2009 9:35 am
by susrisha

Re: Word cutoff function

Posted: Wed Mar 25, 2009 9:37 am
by Darkzaelus
wonderful, should have thought that myself but oh well :P

Cheers,

Darkzaelus

Re: Word cutoff function

Posted: Wed Mar 25, 2009 9:47 am
by jayshields
Surely substr() is more appropriate.

Re: Word cutoff function

Posted: Wed Mar 25, 2009 9:56 am
by Darkzaelus
Yea, it is, exactly what I was looking for.

Cheers,


Darkzaelus