|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all,
Me again. I am creating many things, one of which is a webmail system. What I am trying to achieve is in the inbox, if a message's subject is long, I would like to be able to display it as a shortened version with dots so's that it doesn't shift the table layout. Eg. Instead of it diplaying: RE - Can you send me information on html? It would display: RE - Can you sen... --- Does this make sense? I appreciate your help. dD. |
|
|||
|
$subject = "RE - Can you send me information on html?";
if(strlen($subject) > 19) $subject = substr($subject, 0, 16) . '...'; echo "$subject\n"; Change the numbers to cut the string to the length you want. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |