Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( strlen( $body ) < $maxlength ) return $body;
- $body = substr( $body , 0 , $maxlength );
- $rpos = strrpos( $body , ' ' );
- if ( $rpos > 0 ) $body = substr( $body , 0 , $rpos );
- return $body;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement