echo substr($txt7, 0, 200);
if(strlen($txt7)>200)
echo "...";
urtrivedi
Posting Virtuoso
1,715 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
write full code how / where u set $txt7
urtrivedi
Posting Virtuoso
1,715 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
if u echo $txt7 alone, do it printt anything
urtrivedi
Posting Virtuoso
1,715 posts since Dec 2008
Reputation Points: 299
Solved Threads: 362
Skill Endorsements: 24
How about the mb_* functions:
echo mb_strimwidth($txt7, 0, 203, "...");
You need to add the number of characters in the append parameter (#4) to the end trim parameter (#3). Start trimming on parameter #2, using the string #1.
diafol
Keep Smiling
10,672 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
Question Answered as of 5 Months Ago by
GliderPilot,
urtrivedi
and
diafol