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
You must be logged in to post a comment.
Grab the RSS feed for Free Updates!(What's this? — Learn more about RSS)
Copyright © 2014 KA's Blog. All rights reserved.
Proudly powered by WordPress