Tection99 Posted May 28, 2007 Share Posted May 28, 2007 I'm looking for a script that will split text up into consecutive sections (based on a certain amount of words) and output them over time? If anyone could point in the right direction I'd be very grateful! Thanks Link to comment https://forums.phpfreaks.com/topic/53235-please-help-split-text-up-into-sections-using-php/ Share on other sites More sharing options...
chronister Posted May 28, 2007 Share Posted May 28, 2007 str_split will do the job. It will split the string based on a value you can set and make an array from that. Also explode will do the same thing but a little different. Take a look at those 2 functions and the related functions listed in the manual. You should find what your looking for there. http://us.php.net/manual/en/function.explode.php http://us.php.net/manual/en/function.str-split.php Link to comment https://forums.phpfreaks.com/topic/53235-please-help-split-text-up-into-sections-using-php/#findComment-263056 Share on other sites More sharing options...
Tection99 Posted May 28, 2007 Author Share Posted May 28, 2007 Thanks for that! Link to comment https://forums.phpfreaks.com/topic/53235-please-help-split-text-up-into-sections-using-php/#findComment-263503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.