Welcome Guest, Not a member yet? Register   Sign In
character_limiter not working?
#2

[eluser]davidbehler[/eluser]
From the Guide
Quote:..It maintains the integrity of words so the character count may be slightly more or less then what you specify...

This means that the behaviour in your second example is perfectly normal because your string basically is one huge word which this function won't break.

You might want to use
Code:
echo substr($string, 10).'...';
instead.


Messages In This Thread
character_limiter not working? - by El Forum - 06-25-2010, 04:57 AM
character_limiter not working? - by El Forum - 06-25-2010, 05:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB