Limiting characters of displayed results
Hello, I'm having trouble applying the substr function to the following code below. I'm trying to limit to amount of characters displayed from the 'headline' to 60, It should be simple enough but i keep getting syntax errors.
This is a simple example of of how the substr is used:
<?php print substr($smallDesc, 0,129); print"..."?>
Is this what you're looking for?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
How to Ask Questions the Smart Way
(not affiliated with this site, but well worth reading)
thank you so much for the fast response, it works like a charm. The periods threw me off
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)