Jump to content

Text amount please help.


redarrow

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.