Soft text cutting (don't break words!)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $text=substr ($text, 0, strpos ($text, " ", 249));

URL: http://www.promoforum.ru/index.php?showtopic=12687&view=findpost&p=97609

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.