quick php q
quick php q
Out of context: Reply #1
- Started
- Last post
- 5 Responses
- arlo0
This is what I use to shorten URLs into ending with '...' if they are too long:
if(strlen($row['referrer']) > 35){
$newURL = substr($row['referrer'], 0,40) . "...";
} else {
$newURL = $row['referrer'];
}