PHP truncating string question – related to prior resolved topic
-
I want to have a drop down menu of podcast episodes (category podcasts).
I don’t know PHP, but this code in the above thread does exactly what I want to do and I’ve implemented it. However, I need to truncate the post title string to 20 characters. I’m guessing I need something like substr ($title,0,20) but don’t know where in this code I can truncate without breaking. Any PHP help out there?
Thanks,
Laurie
My site is DailyAdventureTales.comI can’t leave this widget as is for very long, as it is totally wacking my mobile display. But will leave for a bit.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP truncating string question – related to prior resolved topic’ is closed to new replies.