How to display first X characters?

4 posts by 3 authors in: Forums > CMS Builder
Last Post: August 26, 2008   (RSS)

By samsam92 - August 23, 2008

Hi there, I was wondering how I could display on the listing page the first X characters of a field such as "content" ?

For example: <?php echo $record['content'] ?> I want to show the first 100 characters.

Let me know please

Thanks a lot

Re: [samsam92] How to display first X characters?

By Jake - August 24, 2008

Hi samsam92,

Thanks for posting this! It could definitely come in handy for some other users. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [samsam92] How to display first X characters?

By zip222 - August 26, 2008

Awesome! That is super useful.