Hi everyone,
I am just curious what php method would be best to perform the following:
$url="http://www.myfavoritewebsite.com?selected=dogfood&turtle=1&waterfall=2&x=22";
if (strlen($url)>=35)
{
from character 35, chop off all but the last 3 characters, and replace them with "..."
so the result would be something like
http://www.myfavoritewebsite.com?se...=22
}
how would one recommend I do this exactly?
thanks
-patrick