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


You need to login to view comments.