Limit excerpt length by characters (Multiple excerpt)

I wanted to have multiple excerpt for my site in wordpress . I googled and find numerious one but helped me alot.
We can simple add

 function get_excerpt($count){
 $permalink = get_permalink($post->ID);
 $excerpt = get_the_content();
 $excerpt = strip_tags($excerpt);
 $excerpt = substr($excerpt, 0, $count);
 $excerpt = substr($excerpt, 0, strripos($excerpt, " "));
 $excerpt = $excerpt.'... <a href="'.$permalink.'">more</a>';
 return $excerpt;

and it by

echo get_excerpt(125);

Comments are closed.