split a string after 50 characters
Posted: Mon May 19, 2008 3:40 am
I'm currently trying to split a string after a certain number of characters (say, 50). Basically, I want $bigString to turn into $firstFifty and $everythingElse.
I'm doing this for a article displayer. The idea is that it displays the first 50 characters of the article and a [...] at the end of that. I have a javascript function that activates when the [...] is clicked so that the rest of the article is displayed.
Thanks much for your time.
I'm doing this for a article displayer. The idea is that it displays the first 50 characters of the article and a [...] at the end of that. I have a javascript function that activates when the [...] is clicked so that the rest of the article is displayed.
Thanks much for your time.