Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Truncate Memo Field based on specified length, string truncated to nearest space or CrLf - PHP

function TruncateMemo($str, $ln){ if (strlen($str) > 0 && strlen($str) > $ln) { $k = 0; while ($k >= 0 && $k 0 && $j > 0) { if ($i



This post first appeared on Smash Scripts, please read the originial post: here

Share the post

Truncate Memo Field based on specified length, string truncated to nearest space or CrLf - PHP

×

Subscribe to Smash Scripts

Get updates delivered right to your inbox!

Thank you for your subscription

×