Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to split a string by number of chars ?
November 8, 2004, 1:39 am
rate this thread
Re: How to split a string by number of chars ?
$d_content1 = substr($d_content,0,100);
$d_content2 = substr($d_content,100);
But, I need it to break the string on the nearest word. I jusr realized
that because I got:
$d_content1 == ....this is really gre
$d_content2 == at
I need it to do:
$d_content1 == ....this is really
$d_content2 == great