Written by khawaib
This simple function returns a shorten string back.
$sep = '...';
$length = 8;
echo substr_replace ($string, $sep, $length, - $length);
Posted on 12 October 2011
Tags: function, php, returns, short string, shorten string
Email (will not be published) (required)
Grab the RSS feed for Free Updates!(What's this? — Learn more about RSS)
Copyright © 2013 KA's Blog. All rights reserved.
Proudly powered by WordPress