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.
split a string after 50 characters
Moderator: General Moderators
Re: split a string after 50 characters
Use substr().
Re: split a string after 50 characters
=0
Awesome, thank you! Its.... defiantly 5 in the morning... heh...
Awesome, thank you! Its.... defiantly 5 in the morning... heh...