I have a variable:
$url = sprintf("%s%s%s","http://",$HTTP_HOST,"$REQUEST_URI?$url_params");
I want to create a new variable ($url_abbr) that only shows say the firs 50 characters of $url and then puts "..." at the end. How can I do this?
Thanks!
something like this...
$url_abbr = substr ($url, 0, 50)."...";