Forum Moderators: coopster
I've more or less finished developing a flat file based blog, and everything is working quite nicely. I've added a "Recent Articles" list, which displays my last 5 entries.
I'm displaying this list in a fairly small iframe so i'm a bit pushed for space. I'm looking to just list the subject i've set for each entry. This is fine, unfortunatly some of the topic names are longer than i'd like and running off the edge of the frame.
My question is this: would it be possible to cut back on the number of characters in the string?
Eg.
$subject = "PHP is a crazy language";
$newsubject = "PHP is a cra...";
How would I go about this?
Many thanks in advance,
Neil