Topic: [Trim/Truncate] Only first word?
I'm using this code to limit the subject to 5 letters (don't ask why )
.$subject_truncated = pun_htmlspecialchars(trim(substr($cur_post['subject'], 0, ($max_subject_length=5)))).
But now I want it to display only the first word of the subject-line. Can you help?