Trimming and stripping
Posted: Thu Jun 10, 2010 5:46 am
Hi, i want to strip the tags from this database return as well as limit the number of characters returned.
I have got this and and it strips the tags perfectly but i have no idea on how to combine the trim with it
Which trims the length beautifully
Can you guys help me out
Cheers
Kev
Code: Select all
<p><?php echo strip_tags($row_archive['archive_content'], '<a>') ?></p>Code: Select all
<p><?php echo TrimByLength($row_archive['archive_content'], 200, false); ?></p>Can you guys help me out
Cheers
Kev