counting caracters

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 13
Joined: Thu Sep 12, 2002 7:18 am

Fri Sep 27, 2002 12:35 am

Hello there
Can anybody help me with this?
I am retriving information from a database. This information goes into a news feed. my problem is hat I display a taster of the latest news on the front page of the news feed and from there, clicking on some links, one can read the full article.
How could I set this up so I limit the number of caracters to be displayed on the front page and if the string is longer that this limit I cut it and then find the next empty space and add a link to the full article.

Post Reply