boeing747fp
11-26-2003, 12:06 AM
how do i make this search engine only put out a certain amount of characters in a certain $row[#] and have a '...' after that certain amount of characters???
|
||||
certain amount of charactersboeing747fp 11-26-2003, 12:06 AM how do i make this search engine only put out a certain amount of characters in a certain $row[#] and have a '...' after that certain amount of characters??? Funkel 11-26-2003, 01:23 AM <?php $strText = "Email Notification: emails sent to you whenever someone replies. Only registered users are eligible. "; $strLen = 11; // Max character length $strShort = substr_replace($strText, '...', $strLen); ?> Should do the trick boeing747fp 11-26-2003, 01:45 AM no i mean like this..... -------------------- http://php-forums.com/forums/showthread.php?s=&threadid=1592 Funkel 11-26-2003, 02:05 AM <?php $url = "http://php-forums.com/forums/showthread.php?s=&threadid=1592"; echo substr_replace($url, '...', 40, -10); ?> |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum