Welcome Guest, Not a member yet? Register   Sign In
print substring but show full words not cutted character..!!
#1

[eluser]Zeeshan Rasool[/eluser]
Hi all,
I need little help from you.I want to print content of post but limited portion and after that i show a link "Read More" in end so that it leads to full post detail. But when i use substr() func and use 200 character it prints well but i need to print or need to end substring with full word

example:

Default:
This is my post and when it mak...ReadMore

I need:
This is my post and when it makes...ReadMore

One idea is to use array to store word by word but any idea from you guys!

thanks in advance:


Messages In This Thread
print substring but show full words not cutted character..!! - by El Forum - 07-08-2009, 11:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB