Return to Snippet

Revision: 14253
at May 26, 2009 18:08 by iloveitaly


Initial Code
function stringDisplay($str, $charLimit) {
	if(strlen($str) > $charLimit) return substr($str, 0, $charLimit).'...';
	return $str;
}

Initial URL

                                

Initial Description

                                

Initial Title
Limit Character / String Display With Fake Ellipsis

Initial Tags

                                

Initial Language
PHP