Return to Snippet

Revision: 32472
at September 26, 2010 01:35 by nilambar

Initial Code
*	stripText()
*	@action:get input string and returns splited string of given length
*			makes sure half word in not in the end
*	@parameters:
*		$str: string to be splited
*		$len: length of required string
*	@return: string of given length
*	@modified : 19 September 2010
*	@modified by: Nilambar
function stripText($str,$len=100)
		return $str;
		$exploded_array=explode(' ',$str );
		$op=implode(' ',$exploded_array);
	return $op;


Initial URL

Initial Description
Gets string and length and return string of given length. Makes sure half word in not in the end.

Initial Title
Strip Text of given length

Initial Tags

Initial Language