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
Word cutoff function
Moderator: General Moderators
-
Darkzaelus
- Forum Commoner
- Posts: 94
- Joined: Tue Sep 09, 2008 7:02 am
Re: Word cutoff function
wonderful, should have thought that myself but oh well 
Cheers,
Darkzaelus
Cheers,
Darkzaelus
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: Word cutoff function
Surely substr() is more appropriate.
-
Darkzaelus
- Forum Commoner
- Posts: 94
- Joined: Tue Sep 09, 2008 7:02 am
Re: Word cutoff function
Yea, it is, exactly what I was looking for.
Cheers,
Darkzaelus
Cheers,
Darkzaelus