redarrow Posted July 24, 2006 Share Posted July 24, 2006 Advance thank you.I use this php statement to get a br afther 63 charecter thats fine can someone also kindly help me to incorprate to show only 200 charecters.I tried but faild please help cheers.$comment=$data['comment'];$comment=wordwrap($comment,63,"<br>",1);example$num_chars = 19; $description = $description." "; $description = substr($description,0,$num_chars); $description = substr($description,0,strrpos($description,' ')); echo $description;doesnt work please help cheers. Link to comment https://forums.phpfreaks.com/topic/15536-text-amount-please-help/ Share on other sites More sharing options...
ryanlwh Posted July 24, 2006 Share Posted July 24, 2006 [code]$comment = substr($comment,0,200);[/code] Link to comment https://forums.phpfreaks.com/topic/15536-text-amount-please-help/#findComment-63108 Share on other sites More sharing options...
zq29 Posted July 24, 2006 Share Posted July 24, 2006 substr() ?[b]EDIT:[/b] Beaten to it! Link to comment https://forums.phpfreaks.com/topic/15536-text-amount-please-help/#findComment-63109 Share on other sites More sharing options...
redarrow Posted July 24, 2006 Author Share Posted July 24, 2006 that worked brillent cheers so happy all night on that cheers. Link to comment https://forums.phpfreaks.com/topic/15536-text-amount-please-help/#findComment-63115 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.