Jump to content


Photo

Text amount please help.


  • Please log in to reply
3 replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 24 July 2006 - 08:00 PM

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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#2 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 24 July 2006 - 08:03 PM

$comment = substr($comment,0,200);

Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#3 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 24 July 2006 - 08:03 PM

substr() ?

EDIT: Beaten to it!

#4 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 24 July 2006 - 08:06 PM

that worked brillent cheers so happy all night on that cheers.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users