public function excerpt(string $string, int $length = 20): string
	{
		return (strlen($string) > $length) ? substr($string, 0, $length - 3) . '...' : $string;
	}
public function excerpt(string $string, int $length = 20): string
	{
		return (strlen($string) > $length) ? substr($string, 0, $length - 3) . '...' : $string;
	}
public function excerpt ( string $ string , int $ length = 20 ) : string { return ( strlen ( $ string ) > $ length ) ? substr ( $ string , 0 , $ length - 3 ) . '...' : $ string ; }
Extract first bit of a long string and add ellipsis

@param  string  $string
@param  integer $length
@return string
Extract first bit of a long string and add ellipsis